author | Michal Vitecek <fuf@mageo.cz> | |
Tue, 25 Sep 2007 14:38:46 +0000 (16:38 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 26 Sep 2007 07:40:47 +0000 (00:40 -0700) | ||
commit | 55246aac6717e86c14f31391ac903ed810d1a9a0 | |
tree | d2526538770e575669d0d0ac648f45328e0e42de | tree | snapshot |
parent | 5166810b1e16b22e342f2181a3535e70c6e7a119 | commit | diff |
Don't use "<unknown>" for placeholders and suppress printing of empty user formats.
This changes the interporate() to replace entries with NULL values
by the empty string, and uses it to interpolate missing fields in
custom format output used in git-log and friends. It is most useful
to avoid <unknown> output from %b format for a commit log message
that lack any body text.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This changes the interporate() to replace entries with NULL values
by the empty string, and uses it to interpolate missing fields in
custom format output used in git-log and friends. It is most useful
to avoid <unknown> output from %b format for a commit log message
that lack any body text.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-rev-list.c | diff | blob | history | |
commit.c | diff | blob | history | |
interpolate.c | diff | blob | history | |
log-tree.c | diff | blob | history | |
t/t6006-rev-list-format.sh | diff | blob | history | |
t/t7500-commit.sh | diff | blob | history |