mirror of
https://github.com/git/git.git
synced 2024-10-30 05:47:53 +01:00
Merge branch 'jc/tag-contains-with'
* jc/tag-contains-with: tag: grok "--with" as synonym to "--contains"
This commit is contained in:
commit
884377c128
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue