author | Thomas Rast <trast@student.ethz.ch> | |
Sat, 17 Jan 2009 16:09:55 +0000 (17:09 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 18 Jan 2009 02:37:19 +0000 (18:37 -0800) | ||
commit | d18ba22154574390dbff2c060f44b9715477e95a | |
tree | aad88747b04d28f49caf86c9ccb12400ff4c6c0d | tree | snapshot |
parent | a884d0cb71463c28d0329c593dce1ef9758f6177 | commit | diff |
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>
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 | diff | blob | history | |
sha1_name.c | diff | blob | history | |
t/t1505-rev-parse-last.sh | [new file with mode: 0755] | blob |