summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2006-11-28 21:49:17 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-11-28 22:00:28 (GMT)
commitc3e43938839752b48ff3a36862ae59f1cd1e630d (patch)
tree6919de72691cfa8ae7b6ac23db357c19b3901c4a
parente15161198a381334b8c8ccee707392163f3a1ab7 (diff)
downloadgit-c3e43938839752b48ff3a36862ae59f1cd1e630d.zip
git-c3e43938839752b48ff3a36862ae59f1cd1e630d.tar.gz
git-c3e43938839752b48ff3a36862ae59f1cd1e630d.tar.bz2
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>
-rw-r--r--builtin-shortlog.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/builtin-shortlog.c b/builtin-shortlog.c
index b5b13de..f1124e2 100644
--- a/builtin-shortlog.c
+++ b/builtin-shortlog.c
@@ -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);