From: Michael Schubert Date: Mon, 1 Aug 2011 11:20:42 +0000 (+0200) Subject: reflog: actually default to subcommand 'show' X-Git-Tag: v1.7.7-rc0~42^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bf01d4a334c621abdc76a5bdeac252296d9b23cb;p=git.git reflog: actually default to subcommand 'show' The reflog manpage says: git reflog [show] [log-options] [] the subcommand 'show' is the default "in the absence of any subcommands". Currently this is only true if the user provided either at least one option or no additional argument at all. For example: git reflog master won't work. Change this by actually calling cmd_log_reflog in absence of any subcommand. Signed-off-by: Michael Schubert Signed-off-by: Junio C Hamano --- diff --git a/builtin/reflog.c b/builtin/reflog.c index ebf610e64..3a9c80f3d 100644 --- a/builtin/reflog.c +++ b/builtin/reflog.c @@ -777,6 +777,5 @@ int cmd_reflog(int argc, const char **argv, const char *prefix) if (!strcmp(argv[1], "delete")) return cmd_reflog_delete(argc - 1, argv + 1, prefix); - /* Not a recognized reflog command..*/ - usage(reflog_usage); + return cmd_log_reflog(argc, argv, prefix); }