summaryrefslogtreecommitdiff
path: root/pretty.c
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2009-11-08 01:04:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-11-09 00:51:33 (GMT)
commit32ca42491246eb00d226826039fff18d58b57081 (patch)
tree57c98ee0bda46c84f27bd9fc249db58b5a303fcc /pretty.c
parent02edd56b84f00c1a88c5602f5608033d4bc1cbff (diff)
downloadgit-32ca42491246eb00d226826039fff18d58b57081.zip
git-32ca42491246eb00d226826039fff18d58b57081.tar.gz
git-32ca42491246eb00d226826039fff18d58b57081.tar.bz2
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 <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pretty.c')
-rw-r--r--pretty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pretty.c b/pretty.c
index 91be0ce..5e9d1f8 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;