From 2afc29aa84f518906c50a1f005e3d715babb5c20 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sat, 17 Feb 2007 19:22:35 +0100 Subject: name-rev: introduce the --refs= option Instead of (or, in addition to) --tags, to use only tags for naming, you can now use --refs= 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 Signed-off-by: Junio C Hamano --- Documentation/git-name-rev.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Documentation/git-name-rev.txt') diff --git a/Documentation/git-name-rev.txt b/Documentation/git-name-rev.txt index 37fbf66efb..5b5c4c865f 100644 --- a/Documentation/git-name-rev.txt +++ b/Documentation/git-name-rev.txt @@ -8,7 +8,8 @@ git-name-rev - Find symbolic names for given revs SYNOPSIS -------- -'git-name-rev' [--tags] ( --all | --stdin | ... ) +'git-name-rev' [--tags] [--refs=] + ( --all | --stdin | ... ) DESCRIPTION ----------- @@ -22,6 +23,9 @@ OPTIONS --tags:: Do not use branch names, but only tags to name the commits +--refs=:: + Only use refs whose names match a given shell pattern. + --all:: List all commits reachable from all refs -- cgit v1.2.3