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:
@ -365,8 +365,10 @@ int main(int argc, const char **argv)
|
|||||||
|
|
||||||
list = revs.commits;
|
list = revs.commits;
|
||||||
|
|
||||||
if (!list &&
|
if ((!list &&
|
||||||
(!(revs.tag_objects||revs.tree_objects||revs.blob_objects) && !revs.pending_objects))
|
(!(revs.tag_objects||revs.tree_objects||revs.blob_objects) &&
|
||||||
|
!revs.pending_objects)) ||
|
||||||
|
revs.diff)
|
||||||
usage(rev_list_usage);
|
usage(rev_list_usage);
|
||||||
|
|
||||||
save_commit_buffer = verbose_header;
|
save_commit_buffer = verbose_header;
|
||||||
|
Reference in New Issue
Block a user