author | Junio C Hamano <gitster@pobox.com> | |
Tue, 9 Mar 2010 07:27:25 +0000 (23:27 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 9 Mar 2010 09:11:18 +0000 (01:11 -0800) | ||
commit | b44900599710c700c1bf164d3753eb7f8eb6c18a | |
tree | 7074d319cc73aed1a3ba26afe549fd584d0c1fda | tree | snapshot |
parent | 32962c9bd5149005b163dff230670872eb99286a | commit | diff |
show -c: show patch text
Traditionally, "show" defaulted to "show --cc" (dense combined patch), but
asking for combined patch with "show -c" didn't turn the patch output
format on; the placement of this logic in setup_revisions() dates back to
cd2bdc5 (Common option parsing for "git log --diff" and friends,
2006-04-14).
This unfortunately cannot be done as a trivial change of "if dense
combined is asked, default to patch format" done in setup_revisions() to
"if any combined is asked, default to patch format", as "diff-tree -c"
needs to default to raw, while "diff-tree --cc" needs to default to patch,
and they share the codepath. These command specific defaults are now
handled in the new "tweak" callback that can be customized by individual
command implementations.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Traditionally, "show" defaulted to "show --cc" (dense combined patch), but
asking for combined patch with "show -c" didn't turn the patch output
format on; the placement of this logic in setup_revisions() dates back to
cd2bdc5 (Common option parsing for "git log --diff" and friends,
2006-04-14).
This unfortunately cannot be done as a trivial change of "if dense
combined is asked, default to patch format" done in setup_revisions() to
"if any combined is asked, default to patch format", as "diff-tree -c"
needs to default to raw, while "diff-tree --cc" needs to default to patch,
and they share the codepath. These command specific defaults are now
handled in the new "tweak" callback that can be customized by individual
command implementations.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-diff-tree.c | diff | blob | history | |
builtin-log.c | diff | blob | history | |
revision.c | diff | blob | history | |
revision.h | diff | blob | history | |
t/t4013-diff-various.sh | diff | blob | history | |
t/t4013/diff.show_-c_master | [new file with mode: 0644] | blob |