aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJake Goulding <goulding@vivisimo.com>2009-01-26 09:13:25 -0500
committerJunio C Hamano <gitster@pobox.com>2009-01-28 11:33:51 -0800
commit32c35cfb1e9c8523b9d60e5095f1c49ebaef0279 (patch)
treeb5b75d113517361b4ddcc517a6ea9bb3efcd6d46 /Documentation
parent7fcdb36e29f9a5e779bc9e44cd69f8f69fac9426 (diff)
downloadgit-32c35cfb1e9c8523b9d60e5095f1c49ebaef0279.tar.gz
git-32c35cfb1e9c8523b9d60e5095f1c49ebaef0279.tar.xz
git-tag: Add --contains option
This functions similarly to "git branch --contains"; it will show all tags that contain the specified commit, by sharing the same logic. The patch also adds documentation and tests for the new option. Signed-off-by: Jake Goulding <goulding@vivisimo.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-tag.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/git-tag.txt b/Documentation/git-tag.txt
index e44f54302..533d18bbd 100644
--- a/Documentation/git-tag.txt
+++ b/Documentation/git-tag.txt
@@ -12,7 +12,7 @@ SYNOPSIS
'git tag' [-a | -s | -u <key-id>] [-f] [-m <msg> | -F <file>]
<name> [<commit> | <object>]
'git tag' -d <name>...
-'git tag' [-n[<num>]] -l [<pattern>]
+'git tag' [-n[<num>]] -l [--contains <commit>] [<pattern>]
'git tag' -v <name>...
DESCRIPTION
@@ -68,6 +68,9 @@ OPTIONS
List tags with names that match the given pattern (or all if no pattern is given).
Typing "git tag" without arguments, also lists all tags.
+--contains <commit>::
+ Only list tags which contain the specified commit.
+
-m <msg>::
Use the given tag message (instead of prompting).
If multiple `-m` options are given, their values are