summaryrefslogtreecommitdiff
path: root/builtin/shortlog.c
diff options
context:
space:
mode:
authorMartin Ågren <martin.agren@gmail.com>2018-03-10 11:52:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-13 19:22:56 (GMT)
commitcd56d4e5b2ca315d51699984456e50e4c6715f49 (patch)
treedbd20aa08f9e26a3a19a19b7c12812dd3185460b /builtin/shortlog.c
parenta8210328f4db27cc119178b33e9512f8fcbba35c (diff)
downloadgit-cd56d4e5b2ca315d51699984456e50e4c6715f49.zip
git-cd56d4e5b2ca315d51699984456e50e4c6715f49.tar.gz
git-cd56d4e5b2ca315d51699984456e50e4c6715f49.tar.bz2
shortlog: add usage-string for stdin-reading
This has been missing since we learned to print usage, way back in 4e27fb06f (add commit count options to git-shortlog, 2006-10-06). While at it, drop the [] around "<path>...". This matches `git log -h` and Documentation/git-{short}log.txt. It formally makes it look like we do not allow `git shortlog --`, but we gain readability and consistency. Signed-off-by: Martin Ågren <martin.agren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/shortlog.c')
-rw-r--r--builtin/shortlog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/shortlog.c b/builtin/shortlog.c
index e29875b..dc4af03 100644
--- a/builtin/shortlog.c
+++ b/builtin/shortlog.c
@@ -11,7 +11,8 @@
#include "parse-options.h"
static char const * const shortlog_usage[] = {
- N_("git shortlog [<options>] [<revision-range>] [[--] [<path>...]]"),
+ N_("git shortlog [<options>] [<revision-range>] [[--] <path>...]"),
+ N_("git log --pretty=short | git shortlog [<options>]"),
NULL
};