Files
git/builtin
Martin Ågren 4aa0161e83 shortlog: disallow left-over arguments outside repo
If we are outside a repo and have any arguments left after
option-parsing, `setup_revisions()` will try to do its job and
something like this will happen:

$ git shortlog v2.16.0..
BUG: environment.c:183: git environment hasn't been setup
Aborted (core dumped)

The usage is wrong, but we could obviously handle this better. Note that
commit abe549e179 (shortlog: do not require to run from inside a git
repository, 2008-03-14) explicitly enabled `git shortlog` to run from
outside a repo, since we do not need a repo for parsing data from stdin.

Disallow left-over arguments when run from outside a repo.

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2018-03-15 10:37:32 -07:00
..
2017-11-27 11:06:37 +09:00
2017-10-06 10:07:18 +09:00
2016-11-22 13:55:20 -08:00
2017-12-27 11:16:25 -08:00
2017-06-24 14:28:41 -07:00
2017-11-18 12:31:29 +09:00
2017-10-07 16:27:55 +09:00
2017-03-31 08:33:56 -07:00
2017-09-25 15:24:07 +09:00
2017-11-21 14:07:50 +09:00
2017-06-24 14:28:41 -07:00
2017-12-27 11:16:29 -08:00
2017-08-26 22:55:09 -07:00
2017-12-06 09:23:39 -08:00
2017-12-13 13:28:54 -08:00
2017-12-06 09:23:44 -08:00
2017-11-18 12:31:29 +09:00
2017-06-24 14:28:41 -07:00
2017-12-27 11:16:29 -08:00
2017-12-27 11:16:21 -08:00
2017-08-22 10:29:03 -07:00
2017-12-27 11:16:29 -08:00
2017-11-06 14:24:27 +09:00
2017-11-21 14:07:50 +09:00
2017-06-24 14:28:41 -07:00