aboutsummaryrefslogtreecommitdiff
path: root/builtin-log.c
diff options
context:
space:
mode:
authorTimo Hirvonen <tihirvon@gmail.com>2006-06-25 13:54:14 +0300
committerJunio C Hamano <junkio@cox.net>2006-06-26 14:58:41 -0700
commit39bc9a6c2051a9fc31dc9b34b40bdd3dd94a8afb (patch)
tree32a9d02f9dd1403bc65261c5f0ab6425cb53ad5f /builtin-log.c
parent0e677e1a6b0d1c0e848ed19d18dda1c3c797c75e (diff)
downloadgit-39bc9a6c2051a9fc31dc9b34b40bdd3dd94a8afb.tar.gz
git-39bc9a6c2051a9fc31dc9b34b40bdd3dd94a8afb.tar.xz
Add msg_sep to diff_options
Add msg_sep variable to struct diff_options. msg_sep is printed after commit message. Default is "\n", format-patch sets it to "---\n". This also removes the second argument from show_log() because all callers derived it from the first argument: show_log(rev, rev->loginfo, ... Signed-off-by: Timo Hirvonen <tihirvon@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-log.c')
-rw-r--r--builtin-log.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-log.c b/builtin-log.c
index 4e5273aec..71ae6c98a 100644
--- a/builtin-log.c
+++ b/builtin-log.c
@@ -175,6 +175,7 @@ int cmd_format_patch(int argc, const char **argv, char **envp)
rev.diff = 1;
rev.combine_merges = 0;
rev.ignore_merges = 1;
+ rev.diffopt.msg_sep = "---\n";
git_config(git_format_config);
rev.extra_headers = extra_headers;