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

Function mark_commit_graphs

commit-graph.c:2477–2493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2475}
2476
2477static void mark_commit_graphs(struct write_commit_graph_context *ctx)
2478{
2479 uint32_t i;
2480 time_t now = time(NULL);
2481
2482 for (i = ctx->num_commit_graphs_after - 1; i < ctx->num_commit_graphs_before; i++) {
2483 struct stat st;
2484 struct utimbuf updated_time;
2485
2486 if (stat(ctx->commit_graph_filenames_before[i], &st) < 0)
2487 continue;
2488
2489 updated_time.actime = st.st_atime;
2490 updated_time.modtime = now;
2491 utime(ctx->commit_graph_filenames_before[i], &updated_time);
2492 }
2493}
2494
2495static void expire_commit_graphs(struct write_commit_graph_context *ctx)
2496{

Callers 1

write_commit_graphFunction · 0.85

Calls 1

statClass · 0.70

Tested by

no test coverage detected