| 3733 | } |
| 3734 | |
| 3735 | static void explore_walk_step(struct rev_info *revs) |
| 3736 | { |
| 3737 | struct topo_walk_info *info = revs->topo_walk_info; |
| 3738 | struct commit_list *p; |
| 3739 | struct commit *c = prio_queue_get(&info->explore_queue); |
| 3740 | |
| 3741 | if (!c) |
| 3742 | return; |
| 3743 | |
| 3744 | if (repo_parse_commit_gently(revs->repo, c, 1) < 0) |
| 3745 | return; |
| 3746 | |
| 3747 | count_explore_walked++; |
| 3748 | |
| 3749 | if (revs->sort_order == REV_SORT_BY_AUTHOR_DATE) |
| 3750 | record_author_date(&info->author_date, c); |
| 3751 | |
| 3752 | if (revs->max_age != -1 && (c->date < revs->max_age)) |
| 3753 | c->object.flags |= UNINTERESTING; |
| 3754 | |
| 3755 | if (process_parents(revs, c, NULL) < 0) |
| 3756 | return; |
| 3757 | |
| 3758 | if (c->object.flags & UNINTERESTING) |
| 3759 | mark_parents_uninteresting(revs, c); |
| 3760 | |
| 3761 | for (p = c->parents; p; p = p->next) |
| 3762 | test_flag_and_insert(&info->explore_queue, p->item, TOPO_WALK_EXPLORED); |
| 3763 | } |
| 3764 | |
| 3765 | static void explore_to_depth(struct rev_info *revs, |
| 3766 | timestamp_t gen_cutoff) |
no test coverage detected