summaryrefslogtreecommitdiff
path: root/builtin.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-12-28 15:29:31 -0800
committerJunio C Hamano <gitster@pobox.com>2012-12-28 15:44:44 -0800
commit9bcbb1c218d075d8b180cfef4c9089f868151e7e (patch)
treeebbecac96214b283888b90d0710eddce6e74122a /builtin.h
parentbafc478f1618534fcb85bedc0fa224bd2d462441 (diff)
downloadgit-9bcbb1c218d075d8b180cfef4c9089f868151e7e.tar.gz
merge --no-edit: do not credit people involved in the side branch
The credit lines "By" and "Via" to credit authors and committers for their contributions on the side branch are meant as a hint to the integrator to decide whom to mention in the log message text. After the integrator saves the message in the editor, they are meant to go away and that is why they are commented out. When a merge is recorded without editing the generated message, however, its contents do not go through the normal stripspace() and these lines are left in the merge. Stop producing them when we know the merge is going to be recorded without editing, i.e. when --no-edit is given. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin.h')
-rw-r--r--builtin.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin.h b/builtin.h
index dffb34ef4e..3ad8d19bc5 100644
--- a/builtin.h
+++ b/builtin.h
@@ -16,7 +16,8 @@ extern const char git_more_info_string[];
extern void prune_packed_objects(int);
struct fmt_merge_msg_opts {
- unsigned add_title:1;
+ unsigned add_title:1,
+ credit_people:1;
int shortlog_len;
};