* Signal that the shared index is used by updating its mtime. * * This way, shared index can be removed if they have not been used * for some time. */
| 2340 | * for some time. |
| 2341 | */ |
| 2342 | static void freshen_shared_index(const char *shared_index, int warn) |
| 2343 | { |
| 2344 | if (!check_and_freshen_file(shared_index, 1) && warn) |
| 2345 | warning(_("could not freshen shared index '%s'"), shared_index); |
| 2346 | } |
| 2347 | |
| 2348 | int read_index_from(struct index_state *istate, const char *path, |
| 2349 | const char *gitdir) |
no test coverage detected