summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 35039ce)
raw | patch | inline | side by side (parent: 35039ce)
author | Jonathan Nieder <jrnieder@gmail.com> | |
Tue, 27 Jul 2010 18:37:07 +0000 (13:37 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 27 Jul 2010 20:29:14 +0000 (13:29 -0700) |
Since they do not precede setup_revisions, these assignments of 0 to
rev.abbrev have no effect.
v1.7.1.1~17^2~3 (2010-05-03) taught the log --format=%h machinery
to respect --abbrev instead of always abbreviating, so we have to pay
attention to the abbrev setting now.
Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
rev.abbrev have no effect.
v1.7.1.1~17^2~3 (2010-05-03) taught the log --format=%h machinery
to respect --abbrev instead of always abbreviating, so we have to pay
attention to the abbrev setting now.
Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c | patch | blob | history | |
builtin/commit.c | patch | blob | history |
diff --git a/builtin/checkout.c b/builtin/checkout.c
index 1994be92c66257da18c31502bda605be170fd092..eef2b48d9856c90b2d8fd7b2e06f8179c08faeac 100644 (file)
--- a/builtin/checkout.c
+++ b/builtin/checkout.c
struct rev_info rev;
/* I think we want full paths, even if we're in a subdirectory. */
init_revisions(&rev, NULL);
- rev.abbrev = 0;
rev.diffopt.output_format |= DIFF_FORMAT_NAME_STATUS;
if (diff_setup_done(&rev.diffopt) < 0)
die("diff_setup_done failed");
diff --git a/builtin/commit.c b/builtin/commit.c
index a78dbd83bf04c7080487b8508321d79d848e9b1f..279cfc1b5df89d8a58a25ecf5a9098cb761a91bf 100644 (file)
--- a/builtin/commit.c
+++ b/builtin/commit.c
init_revisions(&rev, prefix);
setup_revisions(0, NULL, &rev, NULL);
- rev.abbrev = 0;
rev.diff = 1;
rev.diffopt.output_format =
DIFF_FORMAT_SHORTSTAT | DIFF_FORMAT_SUMMARY;