tag: change --point-at to default to HEAD
[gitweb.git] / builtin / tag.c
index 3c686961db23ad84f798fd17a6a186bd579a8265..8bf6d8517649478b907152a8b68e15206b865ad9 100644 (file)
@@ -431,7 +431,8 @@ int cmd_tag(int argc, const char **argv, const char *prefix)
                             N_("field name to sort on"), &parse_opt_ref_sorting),
                {
                        OPTION_CALLBACK, 0, "points-at", &filter.points_at, N_("object"),
-                       N_("print only tags of the object"), 0, parse_opt_object_name
+                       N_("print only tags of the object"), PARSE_OPT_LASTARG_DEFAULT,
+                       parse_opt_object_name, (intptr_t) "HEAD"
                },
                OPT_STRING(  0 , "format", &format, N_("format"), N_("format to use for the output")),
                OPT_BOOL('i', "ignore-case", &icase, N_("sorting and filtering are case insensitive")),