summaryrefslogtreecommitdiff
path: root/builtin/checkout.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2010-07-27 18:37:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-07-27 20:29:14 (GMT)
commitdcbeac48a7e61154c53ae800ea224607c1f7d52a (patch)
tree072ff21a159f6b43ac2a5d1bf12be53614383ff0 /builtin/checkout.c
parent35039ced9296786bc0971bf5385c0d6f6ea5ea1e (diff)
downloadgit-dcbeac48a7e61154c53ae800ea224607c1f7d52a.zip
git-dcbeac48a7e61154c53ae800ea224607c1f7d52a.tar.gz
git-dcbeac48a7e61154c53ae800ea224607c1f7d52a.tar.bz2
checkout, commit: remove confusing assignments to rev.abbrev
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>
Diffstat (limited to 'builtin/checkout.c')
-rw-r--r--builtin/checkout.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/builtin/checkout.c b/builtin/checkout.c
index 1994be9..eef2b48 100644
--- a/builtin/checkout.c
+++ b/builtin/checkout.c
@@ -279,7 +279,6 @@ static void show_local_changes(struct object *head)
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");