summaryrefslogtreecommitdiff
path: root/builtin/tag.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-03-18 20:51:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-03-18 20:51:15 (GMT)
commit884377c128925e7aa43eafebd8d4d0ba27dafe67 (patch)
treea70f6ff1e49532dbda31a2fb00b8e123ba3ab00c /builtin/tag.c
parent9cf0137bdf01d3fe4fdf4cd4b1ad605eebdfb1de (diff)
parentb0bc1365c29ea3328329ad45aba9e86cd7575af6 (diff)
downloadgit-884377c128925e7aa43eafebd8d4d0ba27dafe67.zip
git-884377c128925e7aa43eafebd8d4d0ba27dafe67.tar.gz
git-884377c128925e7aa43eafebd8d4d0ba27dafe67.tar.bz2
Merge branch 'jc/tag-contains-with'
* jc/tag-contains-with: tag: grok "--with" as synonym to "--contains"
Diffstat (limited to 'builtin/tag.c')
-rw-r--r--builtin/tag.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/builtin/tag.c b/builtin/tag.c
index 169c676..b7d9632 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
},