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

Function generation_numbers_enabled

commit-graph.c:781–794  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

779}
780
781int generation_numbers_enabled(struct repository *r)
782{
783 uint32_t first_generation;
784 struct commit_graph *g;
785
786 g = prepare_commit_graph(r);
787 if (!g || !g->num_commits)
788 return 0;
789
790 first_generation = get_be32(g->chunk_commit_data +
791 g->hash_algo->rawsz + 8) >> 2;
792
793 return !!first_generation;
794}
795
796int corrected_commit_dates_enabled(struct repository *r)
797{

Callers 4

remove_redundantFunction · 0.85
repo_is_descendant_ofFunction · 0.85
handle_commitFunction · 0.85
setup_revisionsFunction · 0.85

Calls 2

prepare_commit_graphFunction · 0.85
get_be32Function · 0.85

Tested by

no test coverage detected