shortlog: remove range check
Don't force the user to specify more than one revision parameter, thus making git-shortlog behave more like git-log. 'git-shortlog master' will now produce the expected results; the other end of the range simply is the (oldest) root commit. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
e15161198a
commit
c3e4393883
@ -298,9 +298,7 @@ int cmd_shortlog(int argc, const char **argv, const char *prefix)
|
||||
if (!access(".mailmap", R_OK))
|
||||
read_mailmap(".mailmap");
|
||||
|
||||
if (rev.pending.nr == 1)
|
||||
die ("Need a range!");
|
||||
else if (rev.pending.nr == 0)
|
||||
if (rev.pending.nr == 0)
|
||||
read_from_stdin(&list);
|
||||
else
|
||||
get_from_rev(&rev, &list);
|
||||
|
Loading…
Reference in New Issue
Block a user