summaryrefslogtreecommitdiff
path: root/t/t4006-diff-mode.sh
diff options
context:
space:
mode:
authorLibravatar Mike Hommey <mh@glandium.org>2014-11-26 19:12:47 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-11-26 10:51:05 -0800
commit61e704e38a4c3e181403a766c5cf28814e4102e4 (patch)
treedcdcecd97b02ec93f34a6b54a4f8ce1e091fc428 /t/t4006-diff-mode.sh
parentGit 1.8.4.5 (diff)
downloadtgif-61e704e38a4c3e181403a766c5cf28814e4102e4.tar.xz
sha1_name: avoid unnecessary sha1 lookup in find_unique_abbrev
An example where this happens is when doing an ls-tree on a tree that contains a commit link. In that case, find_unique_abbrev is called to get a non-abbreviated hex sha1, but still, a lookup is done as to whether the sha1 is in the repository (which ends up looking for a loose object in .git/objects), while the result of that lookup is not used when returning a non-abbreviated hex sha1. Signed-off-by: Mike Hommey <mh@glandium.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4006-diff-mode.sh')
0 files changed, 0 insertions, 0 deletions