Skip to content

Commit

Permalink
revision: --topo-order and --unpacked
Browse files Browse the repository at this point in the history
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 <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Apr 2, 2006
1 parent be7db6e commit 22c31bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion revision.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 22c31bf

Please sign in to comment.