author | Junio C Hamano <gitster@pobox.com> | |
Sun, 6 Jan 2008 12:21:07 +0000 (04:21 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 7 Jan 2008 02:41:43 +0000 (18:41 -0800) | ||
commit | f7ab5c793707082d41e19093f536cdc0d45d8830 | |
tree | d754745b47aa69a50130c0f1d2f37a8d9f01e2fc | tree | snapshot |
parent | 5682694a3c1f272f230301f2b11a834a141d1efe | commit | diff |
custom pretty format: tolerate empty e-mail address
When e-mail address is empty (e.g. "A U Thor <>"), --pretty=format
misparsed the commit header and did not pick up the date field correctly.
Noticed by Marco, fixed slightly differently with additional sanity
check and with a test.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When e-mail address is empty (e.g. "A U Thor <>"), --pretty=format
misparsed the commit header and did not pick up the date field correctly.
Noticed by Marco, fixed slightly differently with additional sanity
check and with a test.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pretty.c | diff | blob | history | |
t/t6006-rev-list-format.sh | diff | blob | history |