diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2007-02-17 19:22:35 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-02-17 11:26:49 -0800 |
commit | 2afc29aa84f518906c50a1f005e3d715babb5c20 (patch) | |
tree | 6f5e4935aa05e394408a30bfc051f1eb79e7de8f /Documentation | |
parent | Merge branch 'maint' (diff) | |
download | tgif-2afc29aa84f518906c50a1f005e3d715babb5c20.tar.xz |
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>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-name-rev.txt | 6 |
1 files changed, 5 insertions, 1 deletions
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 | <committish>... ) +'git-name-rev' [--tags] [--refs=<pattern>] + ( --all | --stdin | <committish>... ) DESCRIPTION ----------- @@ -22,6 +23,9 @@ OPTIONS --tags:: Do not use branch names, but only tags to name the commits +--refs=<pattern>:: + Only use refs whose names match a given shell pattern. + --all:: List all commits reachable from all refs |