]> git.ipfire.org Git - thirdparty/git.git/blobdiff - Documentation/git-rev-parse.txt
rev-parse --branches/--tags/--remotes=pattern
[thirdparty/git.git] / Documentation / git-rev-parse.txt
index 82045a2522799ccf3a03479bf4f4cd1fa1809879..afe86999996bdac3af0499126cbec5767873dc79 100644 (file)
@@ -103,14 +103,26 @@ OPTIONS
 --all::
        Show all refs found in `$GIT_DIR/refs`.
 
---branches::
-       Show branch refs found in `$GIT_DIR/refs/heads`.
-
---tags::
-       Show tag refs found in `$GIT_DIR/refs/tags`.
-
---remotes::
-       Show tag refs found in `$GIT_DIR/refs/remotes`.
+--branches[=pattern]::
+       Show branch refs found in `$GIT_DIR/refs/heads`. If `pattern`
+       is given, only branches matching given shell glob are shown.
+       If pattern lacks '?', '*', or '[', '/*' at the end is impiled.
+
+--tags[=pattern]::
+       Show tag refs found in `$GIT_DIR/refs/tags`. If `pattern`
+       is given, only tags matching given shell glob are shown.
+       If pattern lacks '?', '*', or '[', '/*' at the end is impiled.
+
+--remotes[=pattern]::
+       Show tag refs found in `$GIT_DIR/refs/remotes`. If `pattern`
+       is given, only remote tracking branches matching given shell glob
+       are shown. If pattern lacks '?', '*', or '[', '/*' at the end is
+       impiled.
+
+--glob=glob-pattern::
+       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.
 
 --show-prefix::
        When the command is invoked from a subdirectory, show the