Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-03-19 00:51:14 +0400
committerJunio C Hamano <gitster@pobox.com>2014-03-19 00:51:15 +0400
commit884377c128925e7aa43eafebd8d4d0ba27dafe67 (patch)
treea70f6ff1e49532dbda31a2fb00b8e123ba3ab00c /builtin
parent9cf0137bdf01d3fe4fdf4cd4b1ad605eebdfb1de (diff)
parentb0bc1365c29ea3328329ad45aba9e86cd7575af6 (diff)
Merge branch 'jc/tag-contains-with'
* jc/tag-contains-with: tag: grok "--with" as synonym to "--contains"
Diffstat (limited to 'builtin')
-rw-r--r--builtin/tag.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/builtin/tag.c b/builtin/tag.c
index 169c676636..b7d9632867 100644
--- a/builtin/tag.c
+++ b/builtin/tag.c
@@ -471,6 +471,12 @@ int cmd_tag(int argc, const char **argv, const char *prefix)
parse_opt_with_commit, (intptr_t)"HEAD",
},
{
+ OPTION_CALLBACK, 0, "with", &with_commit, N_("commit"),
+ N_("print only tags that contain the commit"),
+ PARSE_OPT_HIDDEN | PARSE_OPT_LASTARG_DEFAULT,
+ parse_opt_with_commit, (intptr_t)"HEAD",
+ },
+ {
OPTION_CALLBACK, 0, "points-at", NULL, N_("object"),
N_("print only tags of the object"), 0, parse_opt_points_at
},