author | Junio C Hamano <gitster@pobox.com> | |
Wed, 20 Jan 2010 21:59:36 +0000 (13:59 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 21 Jan 2010 03:57:02 +0000 (19:57 -0800) | ||
commit | 66b2ed09c2f0f212c5cd5c095c1f1052ecbb9491 | |
tree | 3dae0edece540e07d06146bb6a5dbf5f6873aec6 | tree | snapshot |
parent | 9504f3d3d2e62cb6fba9e7c61c6fe69dec9053a4 | commit | diff |
Fix "log" family not to be too agressive about showing notes
Giving "Notes" information in the default output format of "log" and
"show" is a sensible progress (the user has asked for it by having the
notes), but for some commands (e.g. "format-patch") spewing notes into the
formatted commit log message without being asked is too aggressive.
Enable notes output only for "log", "show", "whatchanged" by default and
only when the user didn't ask any specific --pretty/--format from the
command line; users can explicitly override this default with --show-notes
and --no-notes option.
Parts of tests are taken from Jeff King's fix.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Giving "Notes" information in the default output format of "log" and
"show" is a sensible progress (the user has asked for it by having the
notes), but for some commands (e.g. "format-patch") spewing notes into the
formatted commit log message without being asked is too aggressive.
Enable notes output only for "log", "show", "whatchanged" by default and
only when the user didn't ask any specific --pretty/--format from the
command line; users can explicitly override this default with --show-notes
and --no-notes option.
Parts of tests are taken from Jeff King's fix.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/pretty-options.txt | diff | blob | history | |
builtin-log.c | diff | blob | history | |
commit.h | diff | blob | history | |
log-tree.c | diff | blob | history | |
pretty.c | diff | blob | history | |
revision.c | diff | blob | history | |
revision.h | diff | blob | history | |
t/t3301-notes.sh | diff | blob | history |