From 22c31bf183bff576c7807f9d67abfc11ee8e1fa4 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sat, 1 Apr 2006 18:52:58 -0800 Subject: revision: --topo-order and --unpacked Now, using --unpacked without limit_list() does not make much sense, but this is parallel to the earlier --max-age fix. Signed-off-by: Junio C Hamano --- revision.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/revision.c b/revision.c index 558ed01a51..07cc86ffcf 100644 --- 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) { - 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); } -- cgit v1.2.3