MCPcopy Create free account
hub / github.com/git/git / explore_walk_step

Function explore_walk_step

revision.c:3735–3763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3733}
3734
3735static 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
3765static void explore_to_depth(struct rev_info *revs,
3766 timestamp_t gen_cutoff)

Callers 1

explore_to_depthFunction · 0.85

Calls 6

prio_queue_getFunction · 0.85
repo_parse_commit_gentlyFunction · 0.85
record_author_dateFunction · 0.85
process_parentsFunction · 0.85
test_flag_and_insertFunction · 0.85

Tested by

no test coverage detected