summaryrefslogtreecommitdiffstats
path: root/git-describe.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-06-02 16:46:52 -0700
committerJunio C Hamano <gitster@pobox.com>2013-06-02 16:46:52 -0700
commit7e590a1afe350393356fbecdd44a43a42ddfad34 (patch)
tree0ff3bfac8994607bda7188f1c19895c965fb96ce /git-describe.txt
parentc710296399a86586e3a5e24ea8519ea2442ab7cf (diff)
downloadgit-htmldocs-7e590a1afe350393356fbecdd44a43a42ddfad34.tar.gz
Autogenerated HTML docs for v1.8.3-182-gb2edae
Diffstat (limited to 'git-describe.txt')
-rw-r--r--git-describe.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/git-describe.txt b/git-describe.txt
index 28e5ec0e2..9439cd6d5 100644
--- a/git-describe.txt
+++ b/git-describe.txt
@@ -88,6 +88,11 @@ OPTIONS
--always::
Show uniquely abbreviated commit object as fallback.
+--first-parent::
+ Follow only the first parent commit upon seeing a merge commit.
+ This is useful when you wish to not match tags on branches merged
+ in the history of the target commit.
+
EXAMPLES
--------
@@ -149,7 +154,9 @@ is found, its name will be output and searching will stop.
If an exact match was not found, 'git describe' will walk back
through the commit history to locate an ancestor commit which
has been tagged. The ancestor's tag will be output along with an
-abbreviation of the input committish's SHA-1.
+abbreviation of the input committish's SHA-1. If '--first-parent' was
+specified then the walk will only consider the first parent of each
+commit.
If multiple tags were found during the walk then the tag which
has the fewest commits different from the input committish will be