[PATCH v2 0/3] shortlog: disallow left-over arguments outside repo
- From
- Martin Ågren <martin.agren@gmail.com>
- Date
- Mar 14, 2018, 21:34 UTC
- Message-ID
- <cover.1521062188.git.martin.agren@gmail.com>
- In-Reply-To
- <cover.1520680894.git.martin.agren@gmail.com>
This is v2 of my attempt at stopping shortlog from BUG-ing when it is used incorrectly outside a repo. Thanks Jonathan and Junio for helpful comments.
Patches 1 and 2 are identical to pu. The error message in patch 3 is now more general. The error condition on the other hand is a bit more specific, "argc > 1", to better match the intention and commit message.
Martin
Martin Ågren (3): git-shortlog.txt: reorder usages shortlog: add usage-string for stdin-reading shortlog: disallow left-over arguments when run outside repo
Documentation/git-shortlog.txt | 2 +- t/t4201-shortlog.sh | 5 +++++ builtin/shortlog.c | 8 +++++++- 3 files changed, 13 insertions(+), 2 deletions(-)
-- 2.16.2.246.ga4ee44448f