diff options
-rw-r--r-- | builtin/tag.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/builtin/tag.c b/builtin/tag.c index 74d3780b7..74d599c2d 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 }, |