summaryrefslogtreecommitdiff
path: root/rev-list.c
diff options
context:
space:
mode:
Diffstat (limited to 'rev-list.c')
-rw-r--r--rev-list.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/rev-list.c b/rev-list.c
index 963707a..0de2181 100644
--- a/rev-list.c
+++ b/rev-list.c
@@ -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;