[PATCH][next] log --format: don't ignore %w() at the start of format string

1 message Options
Embed this post
Permalink
René Scharfe

[PATCH][next] log --format: don't ignore %w() at the start of format string

Reply Threaded More More options
Print post
Permalink
This fixes e.g. --format='%w(72)%s'.

Signed-off-by: Rene Scharfe <[hidden email]>
---
 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;
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [hidden email]
More majordomo info at  http://vger.kernel.org/majordomo-info.html