Skip to content

Commit

Permalink
shortlog: remove range check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
René Scharfe authored and Junio C Hamano committed Nov 28, 2006
1 parent e151611 commit c3e4393
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions builtin-shortlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c3e4393

Please sign in to comment.