MCPcopy Index your code
hub / github.com/git/git / ensure_generations_valid

Function ensure_generations_valid

commit-graph.c:1792–1809  ·  view source on GitHub ↗

* After this method, all commits reachable from those in the given * list will have non-zero, non-infinite generation numbers. */

Source from the content-addressed store, hash-verified

1790 * list will have non-zero, non-infinite generation numbers.
1791 */
1792void ensure_generations_valid(struct repository *r,
1793 struct commit **commits, size_t nr)
1794{
1795 int generation_version = get_configured_generation_version(r);
1796 struct commit_stack list = {
1797 .items = commits,
1798 .alloc = nr,
1799 .nr = nr,
1800 };
1801 struct compute_generation_info info = {
1802 .r = r,
1803 .commits = &list,
1804 .get_generation = get_generation_from_graph_data,
1805 .set_generation = set_generation_in_graph_data,
1806 };
1807
1808 compute_reachable_generation_numbers(&info, generation_version);
1809}
1810
1811static void trace2_bloom_filter_write_statistics(struct write_commit_graph_context *ctx)
1812{

Callers 2

ahead_behindFunction · 0.85
get_branch_base_for_tipFunction · 0.85

Tested by

no test coverage detected