* [PATCH][next] log --format: don't ignore %w() at the start of format string
@ 2009-11-08 1:04 René Scharfe
0 siblings, 0 replies; only message in thread
From: René Scharfe @ 2009-11-08 1:04 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Git Mailing List
This fixes e.g. --format='%w(72)%s'.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
---
pretty.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/pretty.c b/pretty.c
index 5c3b47b..2e031e6 100644
--- a/pretty.c
+++ b/pretty.c
@@ -619,7 +619,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;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-11-08 1:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-08 1:04 [PATCH][next] log --format: don't ignore %w() at the start of format string René Scharfe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox