path: root/Documentation/git-rev-parse.txt
diff options
authorIlari Liusvaara <>2010-01-20 09:48:25 (GMT)
committerJunio C Hamano <>2010-01-20 20:29:05 (GMT)
commitd08bae7e221727e26baab984b792854b842130d7 (patch)
tree234dd292750f4d1a4c9d200e3b6e2792baa98ae9 /Documentation/git-rev-parse.txt
parent5b15950ac414a8a2d4f5eb480712abcc9fe176d2 (diff)
rev-parse --glob
Add --glob=<glob-pattern> option to rev-parse and everything that accepts its options. This option matches all refs that match given shell glob pattern (complete with some DWIM logic). Example: 'git log --branches --not --glob=remotes/origin' To show what you have that origin doesn't. Signed-off-by: Ilari Liusvaara <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/git-rev-parse.txt')
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/git-rev-parse.txt b/Documentation/git-rev-parse.txt
index 82045a2..6eb8c14 100644
--- a/Documentation/git-rev-parse.txt
+++ b/Documentation/git-rev-parse.txt
@@ -112,6 +112,11 @@ OPTIONS
Show tag refs found in `$GIT_DIR/refs/remotes`.
+ Show refs matching shell glob pattern `glob-pattern`. If pattern
+ specified lacks leading 'refs/', it is automatically prepended.
+ If pattern lacks '?', '*', or '[', '/*' at the end is impiled.
When the command is invoked from a subdirectory, show the
path of the current directory relative to the top-level