[PATCH 2/3] shortlog: add usage-string for stdin-reading
- From
- Martin Ågren <martin.agren@gmail.com>
- Date
- Mar 10, 2018, 11:52 UTC
- Message-ID
- <e5f4720c077ee613518ee91f814dab82265ea981.1520680894.git.martin.agren@gmail.com>
- In-Reply-To
- <cover.1520680894.git.martin.agren@gmail.com>
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> --- builtin/shortlog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/builtin/shortlog.c b/builtin/shortlog.c index e29875b84..dc4af03fc 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 };
-- 2.16.2.246.ga4ee44448f