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>
René Scharfe committed
Nov 28, 2006 at 22:49 UTC
c3e43938839752b48ff3a36862ae59f1cd1e630d
1 file changed
+1
-3
builtin-shortlog.c
+1
-3
@@ -298,9 +298,7 @@ int cmd_shortlog(int argc, const char **argv, const char *prefix)
298
if (!access(".mailmap", R_OK))
299
read_mailmap(".mailmap");
300
301
- if (rev.pending.nr == 1)
302
- die ("Need a range!");
303
- else if (rev.pending.nr == 0)
301
+ if (rev.pending.nr == 0)
302
read_from_stdin(&list);
303
else
304
get_from_rev(&rev, &list);