Code

name-rev: introduce the --refs=<pattern> option
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Sat, 17 Feb 2007 18:22:35 +0000 (19:22 +0100)
committerJunio C Hamano <junkio@cox.net>
Sat, 17 Feb 2007 19:26:49 +0000 (11:26 -0800)
commit2afc29aa84f518906c50a1f005e3d715babb5c20
tree6f5e4935aa05e394408a30bfc051f1eb79e7de8f
parent53756f290b94a0f8ee7021713fa63540d1a7e4e8
name-rev: introduce the --refs=<pattern> option

Instead of (or, in addition to) --tags, to use only tags for naming,
you can now use --refs=<pattern> to specify a shell glob pattern
which the refs must match to be used for naming.

Example:

$ git name-rev --refs=*v1* 33db5f4d
33db5f4d tags/v1.0rc1^0~1593

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-name-rev.txt
builtin-name-rev.c