projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
revision: --topo-order and --unpacked
[git.git]
/
revision.c
diff --git
a/revision.c
b/revision.c
index
558ed01
..
07cc86f
100644
(file)
--- a/
revision.c
+++ b/
revision.c
@@
-787,7
+787,10
@@
struct commit *get_revision(struct rev_info *revs)
* that we'd otherwise have done in limit_list().
*/
if (!revs->limited) {
* that we'd otherwise have done in limit_list().
*/
if (!revs->limited) {
- if (revs->max_age != -1 && (commit->date < revs->max_age))
+ if ((revs->unpacked &&
+ has_sha1_pack(commit->object.sha1)) ||
+ (revs->max_age != -1 &&
+ (commit->date < revs->max_age)))
continue;
add_parents_to_list(revs, commit, &revs->commits);
}
continue;
add_parents_to_list(revs, commit, &revs->commits);
}