| author | Michael J Gruber <git@drmicha.warpmail.net> | |
| Mon, 14 Jun 2010 16:12:29 +0000 (18:12 +0200) | ||
| committer | Junio C Hamano <gitster@pobox.com> | |
| Wed, 16 Jun 2010 21:45:09 +0000 (14:45 -0700) | ||
| commit | 7b88176e9bce658fd44c2192c1b7aa6e612ee0c2 | |
| tree | b69a131050b6b093f75addb97094118ba7c96d19 | tree | snapshot |
| parent | 6068cdcc832040ac644c56953be0670bb09afd12 | commit | diff |
pretty: Introduce ' ' modifier to add space if non-empty
We have the '+' modifiier which helps combine format specifiers which
may possibly be empty, e.g. '%s%+b%n'.
Introduce an analogous ' ' (space) modifier which adds a space before
non-empty items. This helps assemble "one line type" format specifiers.
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
We have the '+' modifiier which helps combine format specifiers which
may possibly be empty, e.g. '%s%+b%n'.
Introduce an analogous ' ' (space) modifier which adds a space before
non-empty items. This helps assemble "one line type" format specifiers.
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
| Documentation/pretty-formats.txt | diff | blob | history | |
| pretty.c | diff | blob | history | |
| t/t6006-rev-list-format.sh | diff | blob | history |