Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'fixes'
[gitweb.git]
/
rev-list.c
diff --git
a/rev-list.c
b/rev-list.c
index c60aa72957cb65501266911aefd8aaaa2f2e4e16..3a32e405a38faebe0d4b7ec3b743fe3e15cfd3cf 100644
(file)
--- a/
rev-list.c
+++ b/
rev-list.c
@@
-624,6
+624,11
@@
int main(int argc, char **argv)
if (!merge_order) {
sort_by_date(&list);
+ if (list && !limited && max_count == 1 &&
+ !tag_objects && !tree_objects && !blob_objects) {
+ show_commit(list->item);
+ return 0;
+ }
if (limited)
list = limit_list(list);
if (topo_order)