Skip to content

Commit

Permalink
Merge branch 'jc/tag-contains-with'
Browse files Browse the repository at this point in the history
* jc/tag-contains-with:
  tag: grok "--with" as synonym to "--contains"
  • Loading branch information
Junio C Hamano committed Mar 18, 2014
2 parents 9cf0137 + b0bc136 commit 884377c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions builtin/tag.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,12 @@ int cmd_tag(int argc, const char **argv, const char *prefix)
PARSE_OPT_LASTARG_DEFAULT,
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
Expand Down

0 comments on commit 884377c

Please sign in to comment.