Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2020-07-29 23:10:17 +0300
committerJunio C Hamano <gitster@pobox.com>2020-07-29 23:43:57 +0300
commiteed5332a13ef15391039e5e953462201978058ec (patch)
tree045c59c14262fdd0be0c038cc2efcd05e9f42b40 /builtin/log.c
parent47ae905ffb98cc4d4fd90083da6bc8dab55d9ecc (diff)
log: drop "--cc implies -m" logic
This was added by 82dee4160c (log: show merge commit when --cc is given, 2015-08-20), which explains why we need it. But that commit failed to notice that setup_revisions() already does the same thing, since cd2bdc5309 (Common option parsing for "git log --diff" and friends, 2006-04-14). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/log.c')
-rw-r--r--builtin/log.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/builtin/log.c b/builtin/log.c
index d104d5c6889..281d2ae8eb1 100644
--- a/builtin/log.c
+++ b/builtin/log.c
@@ -731,10 +731,6 @@ static void log_setup_revisions_tweak(struct rev_info *rev,
/* Turn --cc/-c into -p --cc/-c when -p was not given */
if (!rev->diffopt.output_format && rev->combine_merges)
rev->diffopt.output_format = DIFF_FORMAT_PATCH;
-
- /* Turn -m on when --cc/-c was given */
- if (rev->combine_merges)
- rev->ignore_merges = 0;
}
int cmd_log(int argc, const char **argv, const char *prefix)