diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-07-02 12:04:52 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-07-09 16:42:22 -0700 |
commit | cd74e4733db3e2353077bdc7021caa70bed2a483 (patch) | |
tree | 0f8f243291844cb4208996065ff8ca84b99a4de1 /builtin | |
parent | sha1_name.c: teach lookup context to get_sha1_with_context() (diff) | |
download | tgif-cd74e4733db3e2353077bdc7021caa70bed2a483.tar.xz |
sha1_name.c: introduce get_sha1_committish()
Many callers know that the user meant to name a committish by
syntactical positions where the object name appears. Calling this
function allows the machinery to disambiguate shorter-than-unique
abbreviated object names between committish and others.
Note that this does NOT error out when the named object is not a
committish. It is merely to give a hint to the disambiguation
machinery.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
0 files changed, 0 insertions, 0 deletions