summaryrefslogtreecommitdiff
path: root/builtin/cat-file.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-07-02 17:00:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-07-09 23:42:22 (GMT)
commite2643617d75e53e5a69278f8d7382553d1c14cf0 (patch)
treeafbcff536ceab46f29c80d65e56d08df721b3e9c /builtin/cat-file.c
parente48ba200be908f02a3fb30adcbb8000b7100cb32 (diff)
downloadgit-e2643617d75e53e5a69278f8d7382553d1c14cf0.zip
git-e2643617d75e53e5a69278f8d7382553d1c14cf0.tar.gz
git-e2643617d75e53e5a69278f8d7382553d1c14cf0.tar.bz2
sha1_name.c: many short names can only be committish
We know that the token "$name" that appear in "$name^{commit}", "$name^4", "$name~4" etc. can only name a committish (either a commit or a tag that peels to a commit). Teach get_short_sha1() to take advantage of that knowledge when disambiguating an abbreviated SHA-1 given as an object name. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/cat-file.c')
0 files changed, 0 insertions, 0 deletions