1
0
mirror of https://github.com/git/git.git synced 2024-11-19 00:14:12 +01:00

Fix up rev-list option parsing.

rev-list does not take diff options, so barf after seeing some.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano 2006-04-14 22:43:34 -07:00
parent 8e8f998739
commit 8c1f0b44c5

@ -365,8 +365,10 @@ int main(int argc, const char **argv)
list = revs.commits;
if (!list &&
(!(revs.tag_objects||revs.tree_objects||revs.blob_objects) && !revs.pending_objects))
if ((!list &&
(!(revs.tag_objects||revs.tree_objects||revs.blob_objects) &&
!revs.pending_objects)) ||
revs.diff)
usage(rev_list_usage);
save_commit_buffer = verbose_header;