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

Function validate_mixed_generation_chain

commit-graph.c:524–543  ·  view source on GitHub ↗

* returns 1 if and only if all graphs in the chain have * corrected commit dates stored in the generation_data chunk. */

Source from the content-addressed store, hash-verified

522 * corrected commit dates stored in the generation_data chunk.
523 */
524static int validate_mixed_generation_chain(struct commit_graph *g)
525{
526 int read_generation_data = 1;
527 struct commit_graph *p = g;
528
529 while (read_generation_data && p) {
530 read_generation_data = p->read_generation_data;
531 p = p->base_graph;
532 }
533
534 if (read_generation_data)
535 return 1;
536
537 while (g) {
538 g->read_generation_data = 0;
539 g = g->base_graph;
540 }
541
542 return 0;
543}
544
545static void validate_mixed_bloom_settings(struct commit_graph *g)
546{

Callers 2

write_commit_graphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected