Code

[PATCH] Add a new extended SHA1 syntax <name>~<num>
authorJunio C Hamano <junkio@cox.net>
Sun, 21 Aug 2005 09:43:54 +0000 (02:43 -0700)
committerJunio C Hamano <junkio@cox.net>
Tue, 23 Aug 2005 01:34:09 +0000 (18:34 -0700)
commit4f7599ac2543e1d59f2b2b865ecff272ae5f4ea5
treefc1c72ca91c6d4606abe8f0bd18c58f4e9a35706
parent792fe559d02e55c12d2d544fd6d6f202cbaab6f4
[PATCH] Add a new extended SHA1 syntax <name>~<num>

The new notation is a short-hand for <name> followed by <num>
caret ('^') characters.  E.g. "master~4" is the fourth
generation ancestor of the current "master" branch head,
following the first parents; same as "master^^^^" but a bit
more readable.

This will be used in the updated "git show-branch" command.

Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_name.c