Code

checkout, commit: remove confusing assignments to rev.abbrev
authorJonathan Nieder <jrnieder@gmail.com>
Tue, 27 Jul 2010 18:37:07 +0000 (13:37 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 Jul 2010 20:29:14 +0000 (13:29 -0700)
commitdcbeac48a7e61154c53ae800ea224607c1f7d52a
tree072ff21a159f6b43ac2a5d1bf12be53614383ff0
parent35039ced9296786bc0971bf5385c0d6f6ea5ea1e
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>
builtin/checkout.c
builtin/commit.c