diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-02-23 12:05:18 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-02-23 12:05:18 -0800 |
commit | 80eac928ae11d4e417feddcc6a1ec373cf41e14f (patch) | |
tree | dcd3c45289ecc0f3788eac42ff065bfc466fa080 /Documentation/git-rev-parse.txt | |
parent | builtin-notes: Add "copy" subcommand for copying notes between objects (diff) | |
parent | Documentation: improve description of --glob=pattern and friends (diff) | |
download | tgif-80eac928ae11d4e417feddcc6a1ec373cf41e14f.tar.xz |
Merge branch 'il/rev-glob'
Diffstat (limited to 'Documentation/git-rev-parse.txt')
-rw-r--r-- | Documentation/git-rev-parse.txt | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/Documentation/git-rev-parse.txt b/Documentation/git-rev-parse.txt index d375f1af10..c9184fcc76 100644 --- a/Documentation/git-rev-parse.txt +++ b/Documentation/git-rev-parse.txt @@ -103,14 +103,24 @@ 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]:: +--tags[=pattern]:: +--remotes[=pattern]:: + Show all branches, tags, or remote-tracking branches, + respectively (i.e., refs found in `$GIT_DIR/refs/heads`, + `$GIT_DIR/refs/tags`, or `$GIT_DIR/refs/remotes`, + respectively). ++ +If a `pattern` is given, only refs matching the given shell glob are +shown. If the pattern does not contain a globbing character (`?`, +`\*`, or `[`), it is turned into a prefix match by appending `/\*`. + +--glob=pattern:: + Show all refs matching the shell glob pattern `pattern`. If + the pattern does not start with `refs/`, this is automatically + prepended. If the pattern does not contain a globbing + character (`?`, `\*`, or `[`), it is turned into a prefix + match by appending `/\*`. --show-toplevel:: Show the absolute path of the top-level directory. |