author | Michael Schubert <mschub@elegosoft.com> | |
Mon, 1 Aug 2011 11:20:42 +0000 (13:20 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 1 Aug 2011 17:52:34 +0000 (10:52 -0700) | ||
commit | bf01d4a334c621abdc76a5bdeac252296d9b23cb | |
tree | c7d703693692d239c4eb439e67b395d788534f8a | tree | snapshot |
parent | d5b66299040969706dd675c021f4336a26a6cc82 | commit | 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>
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>
builtin/reflog.c | diff | blob | history |