summaryrefslogtreecommitdiff
path: root/builtin/tag.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-03-18 13:51:14 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-03-18 13:51:15 -0700
commit884377c128925e7aa43eafebd8d4d0ba27dafe67 (patch)
treea70f6ff1e49532dbda31a2fb00b8e123ba3ab00c /builtin/tag.c
parentMerge branch 'bg/install-branch-config-skip-prefix' (diff)
parenttag: grok "--with" as synonym to "--contains" (diff)
downloadtgif-884377c128925e7aa43eafebd8d4d0ba27dafe67.tar.xz
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 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
},