| 2475 | } |
| 2476 | |
| 2477 | static 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 | |
| 2495 | static void expire_commit_graphs(struct write_commit_graph_context *ctx) |
| 2496 | { |
no test coverage detected