{"thread":{"id":"27978","subject":"[PATCH] reflog: actually default to subcommand 'show'","startedAt":"2011-08-01T11:20:42Z","lastAt":"2011-08-01T11:20:42Z","messageCount":1,"participants":["Michael Schubert"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"172522","messageId":"4E368C0A.7020901@elegosoft.com","threadId":"27978","inReplyTo":null,"subject":"[PATCH] reflog: actually default to subcommand 'show'","fromName":"Michael Schubert","fromEmail":"mschub@elegosoft.com","sentAt":"2011-08-01T11:20:42Z","receivedAt":"2011-08-01T11:20:42Z","isPatch":true,"sender":{"key":"mschub@elegosoft.com","avatar":null},"body":"The reflog manpage says:\n\n\tgit reflog [show] [log-options] [<ref>]\n\nthe subcommand 'show' is the default \"in the absence of any\nsubcommands\". Currently this is only true if the user provided either\nat least one option or no additional argument at all. For example:\n\n\tgit reflog master\n\nwon't work. Change this by actually calling cmd_log_reflog in\nabsence of any subcommand.\n\nSigned-off-by: Michael Schubert <mschub@elegosoft.com>\n---\n builtin/reflog.c |    3 +--\n 1 files changed, 1 insertions(+), 2 deletions(-)\n\ndiff --git a/builtin/reflog.c b/builtin/reflog.c\nindex ebf610e..3a9c80f 100644\n--- a/builtin/reflog.c\n+++ b/builtin/reflog.c\n@@ -777,6 +777,5 @@ int cmd_reflog(int argc, const char **argv, const char *prefix)\n \tif (!strcmp(argv[1], \"delete\"))\n \t\treturn cmd_reflog_delete(argc - 1, argv + 1, prefix);\n \n-\t/* Not a recognized reflog command..*/\n-\tusage(reflog_usage);\n+\treturn cmd_log_reflog(argc, argv, prefix);\n }\n-- \n1.7.6.351.gb35ac\n"}]}