Code

reject @{-1} not at beginning of object name
authorJeff King <peff@peff.net>
Thu, 28 Jan 2010 09:56:43 +0000 (04:56 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Jan 2010 20:12:50 +0000 (12:12 -0800)
commit12a258c078da3481a5735a7dca00bbe75cd4713b
tree41f0b1629f18dc9075db04571102b70fbcde15d9
parentd46a8301930ae83de30fbbbbce1bb02a98745204
reject @{-1} not at beginning of object name

Something like foo@{-1} is nonsensical, as the @{-N} syntax
is reserved for "the Nth last branch", and is not an actual
reflog selector. We should not feed such nonsense to
approxidate at all.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_name.c
t/t1508-at-combinations.sh