summaryrefslogtreecommitdiff
path: root/builtin-log.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2008-03-02 15:53:39 +0000
committerJunio C Hamano <gitster@pobox.com>2008-03-02 15:27:27 -0800
commit859c4fbef589841585f8f21cc567b7016681df7a (patch)
tree45761d48fcf8d116006f3bd5703a95ba71845efa /builtin-log.c
parent5d02294c776c46f0d454470c66c16fe9f08fad3d (diff)
downloadgit-859c4fbef589841585f8f21cc567b7016681df7a.tar.gz
format-patch: wrap cover-letter's shortlog sensibly
Earlier, overly-long onelines would not be wrapped at all, and indented with 6 spaces. Instead, we now wrap around at 72 characters, with a first-line indent of 2 spaces, and the rest with 4 spaces. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-log.c')
-rw-r--r--builtin-log.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin-log.c b/builtin-log.c
index fd9b3ae95e..fe8fc6f22a 100644
--- a/builtin-log.c
+++ b/builtin-log.c
@@ -683,6 +683,10 @@ static void make_cover_letter(struct rev_info *rev, int use_stdout,
strbuf_release(&sb);
shortlog_init(&log);
+ log.wrap_lines = 1;
+ log.wrap = 72;
+ log.in1 = 2;
+ log.in2 = 4;
for (i = 0; i < nr; i++)
shortlog_add_commit(&log, list[i]);