Code

sha1_name: support @{-N} syntax in get_sha1()
authorThomas Rast <trast@student.ethz.ch>
Sat, 17 Jan 2009 16:09:55 +0000 (17:09 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 18 Jan 2009 02:37:19 +0000 (18:37 -0800)
commitd18ba22154574390dbff2c060f44b9715477e95a
treeaad88747b04d28f49caf86c9ccb12400ff4c6c0d
parenta884d0cb71463c28d0329c593dce1ef9758f6177
sha1_name: support @{-N} syntax in get_sha1()

Let get_sha1() parse the @{-N} syntax, with docs and tests.

Note that while @{-1}^2, @{-2}~5 and such are supported, @{-1}@{1} is
currently not allowed.

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-rev-parse.txt
sha1_name.c
t/t1505-rev-parse-last.sh [new file with mode: 0755]