cherry: don't set ignored rev_info options
authorMartin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Sun, 29 Jul 2012 23:25:35 +0000 (16:25 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Jul 2012 00:37:11 +0000 (17:37 -0700)
Ever since cherry was built-in in e827633 (Built-in cherry,
2006-10-24), it has set a bunch of options on the the rev_info that
are only used while outputting a patch. But since the built-in cherry
command never needs to output any patch (it uses add_commit_patch_id
and has_commit_patch_id instead), these options are just distractions,
so remove them.

Signed-off-by: Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/log.c
index 7a92e3f57344aa544621eaa2a767b455988e3138..8cea1e55bf7605c2303e443a381c5e2f94bddcbf 100644 (file)
@@ -1508,10 +1508,6 @@ int cmd_cherry(int argc, const char **argv, const char *prefix)
        }
 
        init_revisions(&revs, prefix);
-       revs.diff = 1;
-       revs.combine_merges = 0;
-       revs.ignore_merges = 1;
-       DIFF_OPT_SET(&revs.diffopt, RECURSIVE);
 
        if (add_pending_commit(head, &revs, 0))
                die(_("Unknown commit %s"), head);