author | Johannes Gilger <heipei@hackvalue.de> | |
Tue, 13 Apr 2010 20:31:12 +0000 (22:31 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 14 Apr 2010 01:15:08 +0000 (18:15 -0700) | ||
commit | 5b16360330822527eac1fa84131d185ff784c9fb | |
tree | 5683f8b5eafe8f0d1e4968a2659a5ecb61032b08 | tree | snapshot |
parent | b9aa901856cee7ad16737343f6a372bb37871258 | commit | diff |
pretty: Initialize notes if %N is used
When using git log --pretty='%N' without an explicit --show-notes, git
would segfault. This patches fixes this behaviour by loading the needed
notes datastructures if --pretty is used and the format contains %N.
When --pretty='%N' is used together with --no-notes, %N won't be
expanded.
This is an extension to a proposed patch by Jeff King.
Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When using git log --pretty='%N' without an explicit --show-notes, git
would segfault. This patches fixes this behaviour by loading the needed
notes datastructures if --pretty is used and the format contains %N.
When --pretty='%N' is used together with --no-notes, %N won't be
expanded.
This is an extension to a proposed patch by Jeff King.
Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/log.c | diff | blob | history | |
commit.h | diff | blob | history | |
pretty.c | diff | blob | history |