aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/reference_test.go
diff options
context:
space:
mode:
authorMike Lundy <mike@fluffypenguin.org>2019-05-14 16:13:55 -0700
committerMike Lundy <mike@fluffypenguin.org>2019-05-14 16:41:32 -0700
commit33f05f3773e1c1e6b4fdde5ee984f6b1935afbfc (patch)
treedbbf58de086de41ce326264585964bb774aa36d0 /plumbing/reference_test.go
parent52fcf7d8a3c2da58769e105a26240e3e697fedeb (diff)
downloadgo-git-33f05f3773e1c1e6b4fdde5ee984f6b1935afbfc.tar.gz
improve ResolveRevision's Ref lookup path
1) lookups on an annotated tag oid now work 2) there was a lot of complexity around detection of ambiguity, but unlike git, ambiguous refs are rejected (which causes bugs like #823). The new code matches rev-parse's behavior (prefer the OID), though there is no warning path to report the same warning. Signed-off-by: Mike Lundy <mike@fluffypenguin.org>
Diffstat (limited to 'plumbing/reference_test.go')
0 files changed, 0 insertions, 0 deletions