From: René Scharfe Date: Sun, 8 Nov 2009 01:04:21 +0000 (+0100) Subject: log --format: don't ignore %w() at the start of format string X-Git-Tag: v1.6.6-rc0~47^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=32ca42491246eb00d226826039fff18d58b57081;p=git.git log --format: don't ignore %w() at the start of format string This fixes e.g. --format='%w(72)%s'. Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- diff --git a/pretty.c b/pretty.c index 91be0ce0a..5e9d1f84b 100644 --- a/pretty.c +++ b/pretty.c @@ -618,7 +618,7 @@ static void rewrap_message_tail(struct strbuf *sb, if (c->width == new_width && c->indent1 == new_indent1 && c->indent2 == new_indent2) return; - if (c->wrap_start && c->wrap_start < sb->len) + if (c->wrap_start < sb->len) strbuf_wrap(sb, c->wrap_start, c->width, c->indent1, c->indent2); c->wrap_start = sb->len; c->width = new_width;