author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Sat, 17 Oct 2009 21:04:19 +0000 (23:04 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 23 Oct 2009 06:33:48 +0000 (23:33 -0700) | ||
commit | 02edd56b84f00c1a88c5602f5608033d4bc1cbff | |
tree | 17af050048efe8d8fc0ca7fdf7931570163568f2 | tree | snapshot |
parent | 00d3947366a50a06da40989a1fd1e3f99885a4c3 | commit | diff |
Implement wrap format %w() as if it is a mode switch
I always considered line wrapping to be more similar to a colour, i.e. a
state that one can change and that is applied to all following text until
the next state change, except that it's always reset at the end of the
format string.
Here's a patch to implement this behaviour, using Dscho's
strbuf_add_wrapped_text()
Signed-off-by: Junio C Hamano <gitster@pobox.com>
I always considered line wrapping to be more similar to a colour, i.e. a
state that one can change and that is applied to all following text until
the next state change, except that it's always reset at the end of the
format string.
Here's a patch to implement this behaviour, using Dscho's
strbuf_add_wrapped_text()
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pretty.c | diff | blob | history |