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

Function refresh_cache_or_die

builtin/commit.c:341–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341static void refresh_cache_or_die(int refresh_flags)
342{
343 /*
344 * refresh_flags contains REFRESH_QUIET, so the only errors
345 * are for unmerged entries.
346 */
347 if (refresh_index(the_repository->index, refresh_flags | REFRESH_IN_PORCELAIN, NULL, NULL, NULL))
348 die_resolve_conflict("commit");
349}
350
351static const char *prepare_index(const char **argv, const char *prefix,
352 const struct commit *current_head, int is_status)

Callers 1

prepare_indexFunction · 0.85

Calls 2

refresh_indexFunction · 0.85
die_resolve_conflictFunction · 0.85

Tested by

no test coverage detected