summaryrefslogtreecommitdiff
path: root/rev-list.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-12-21 00:01:00 -0800
committerJunio C Hamano <junkio@cox.net>2005-12-21 00:01:00 -0800
commitc2f3bf071ee90b01f2d629921bb04c4f798f02fa (patch)
tree08ffe5b40e062d596deee47f3869278f4661a858 /rev-list.c
parent1ed91937e5cd59fdbdfa5f15f6fac132d2b21ce0 (diff)
parent41f93a2c903a45167b26c2dc93d45ffa9a9bbd49 (diff)
downloadgit-c2f3bf071ee90b01f2d629921bb04c4f798f02fa.tar.gz
GIT 1.0.0v1.0.0
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'rev-list.c')
-rw-r--r--rev-list.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rev-list.c b/rev-list.c
index 8020d974f2..d0609666a1 100644
--- a/rev-list.c
+++ b/rev-list.c
@@ -850,7 +850,8 @@ int main(int argc, const char **argv)
handle_one_commit(commit, &list);
}
- if (!list)
+ if (!list &&
+ (!(tag_objects||tree_objects||blob_objects) && !pending_objects))
usage(rev_list_usage);
paths = get_pathspec(prefix, argv + i);