diff options
author | Michael Schubert <mschub@elegosoft.com> | 2011-08-01 15:20:42 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-08-01 21:52:34 +0400 |
commit | bf01d4a334c621abdc76a5bdeac252296d9b23cb (patch) | |
tree | c7d703693692d239c4eb439e67b395d788534f8a /builtin/reflog.c | |
parent | d5b66299040969706dd675c021f4336a26a6cc82 (diff) |
reflog: actually default to subcommand 'show'
The reflog manpage says:
git reflog [show] [log-options] [<ref>]
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 <mschub@elegosoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/reflog.c')
-rw-r--r-- | builtin/reflog.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/reflog.c b/builtin/reflog.c index ebf610e64a..3a9c80f3db 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); } |