* Check that `refs->snapshot` (if present) still reflects the * contents of the `packed-refs` file. If not, clear the snapshot. */
| 787 | * contents of the `packed-refs` file. If not, clear the snapshot. |
| 788 | */ |
| 789 | static void validate_snapshot(struct packed_ref_store *refs) |
| 790 | { |
| 791 | if (refs->snapshot && |
| 792 | !stat_validity_check(&refs->snapshot->validity, refs->path)) |
| 793 | clear_snapshot(refs); |
| 794 | } |
| 795 | |
| 796 | /* |
| 797 | * Get the `snapshot` for the specified packed_ref_store, creating and |
no test coverage detected