projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Brief documentation for the mysterious git-am script
[git.git]
/
rev-list.c
diff --git
a/rev-list.c
b/rev-list.c
index
c60aa72
..
3a32e40
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)