author | Junio C Hamano <gitster@pobox.com> | |
Sat, 23 Jan 2010 00:08:16 +0000 (16:08 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 23 Jan 2010 00:08:16 +0000 (16:08 -0800) |
* il/rev-glob:
Documentation: improve description of --glob=pattern and friends
rev-parse --branches/--tags/--remotes=pattern
rev-parse --glob
Documentation: improve description of --glob=pattern and friends
rev-parse --branches/--tags/--remotes=pattern
rev-parse --glob
1 | 2 | |||
---|---|---|---|---|
Documentation/git-log.txt | patch | | diff1 | | diff2 | | blob | history |
Documentation/git-rev-list.txt | patch | | diff1 | | diff2 | | blob | history |
Documentation/git-rev-parse.txt | patch | | diff1 | | diff2 | | blob | history |
builtin-rev-parse.c | patch | | diff1 | | diff2 | | blob | history |
revision.c | patch | | diff1 | | diff2 | | blob | history |
diff --cc Documentation/git-log.txt
Simple merge
diff --cc Documentation/git-rev-list.txt
Simple merge
diff --cc Documentation/git-rev-parse.txt
index 818eb48d679a66fed046917f8211e3b490a80f31,61f4835a103f72c15792145cb6bfd06bdd1910eb..e7845d4055f81caf2fa92268a17837514f08c4d3
--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.
+
--show-prefix::
When the command is invoked from a subdirectory, show the
path of the current directory relative to the top-level
diff --cc builtin-rev-parse.c
Simple merge
diff --cc revision.c
Simple merge