Code

rev-parse: Add support for the ^! and ^@ syntax
authorBjörn Steinbrink <B.Steinbrink@gmx.de>
Sat, 26 Jul 2008 16:37:56 +0000 (18:37 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 27 Jul 2008 21:14:01 +0000 (14:14 -0700)
commit2122f8b963d49a59762e121c2da571c2348dcce3
tree1a147e9da6e34a121fe2187b2cdf47eaa4522cb9
parent47c6ef1c8def9a20b4ff40825456b45f5e63b51f
rev-parse: Add support for the ^! and ^@ syntax

Those shorthands are explained in the rev-parse documentation but were not
actually supported by rev-parse itself.

gitk internally uses rev-parse to interpret its command line arguments, and
being able to use these "limit with parents" syntax is handy there.

Signed-off-by: Björn Steinbrink <B.Steinbrink@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-rev-parse.c
t/t6101-rev-parse-parents.sh