summaryrefslogtreecommitdiff
path: root/builtin/merge.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-01-10 13:46:29 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-01-10 13:46:29 -0800
commitcf6c52fce8bf0870069b630a2e199483f8f9faac (patch)
tree99a52b465c95f4a85316772425cf8ce173125b18 /builtin/merge.c
parentUpdate draft release notes to 1.8.2 (diff)
parentmerge --no-edit: do not credit people involved in the side branch (diff)
downloadtgif-cf6c52fce8bf0870069b630a2e199483f8f9faac.tar.xz
Merge branch 'jc/maint-fmt-merge-msg-no-edit-lose-credit'
Stop spending cycles to compute information to be placed on commented lines in "merge --no-edit", which will be discarded anyway. * jc/maint-fmt-merge-msg-no-edit-lose-credit: merge --no-edit: do not credit people involved in the side branch
Diffstat (limited to 'builtin/merge.c')
-rw-r--r--builtin/merge.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/merge.c b/builtin/merge.c
index 3a31c4bc25..9307e9c726 100644
--- a/builtin/merge.c
+++ b/builtin/merge.c
@@ -1222,6 +1222,7 @@ int cmd_merge(int argc, const char **argv, const char *prefix)
memset(&opts, 0, sizeof(opts));
opts.add_title = !have_message;
opts.shortlog_len = shortlog_len;
+ opts.credit_people = (0 < option_edit);
fmt_merge_msg(&merge_names, &merge_msg, &opts);
if (merge_msg.len)