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

Function resolve_undo_clear_index

resolve-undo.c:113–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void resolve_undo_clear_index(struct index_state *istate)
114{
115 struct string_list *resolve_undo = istate->resolve_undo;
116 if (!resolve_undo)
117 return;
118 string_list_clear(resolve_undo, 1);
119 free(resolve_undo);
120 istate->resolve_undo = NULL;
121 istate->cache_changed |= RESOLVE_UNDO_CHANGED;
122}
123
124int unmerge_index_entry(struct index_state *istate, const char *path,
125 struct resolve_undo_info *ru, unsigned ce_flags)

Callers 6

try_merge_commandFunction · 0.85
release_indexFunction · 0.85
cmd_mergeFunction · 0.85
merge_working_treeFunction · 0.85
cmd_read_treeFunction · 0.85

Calls 1

string_list_clearFunction · 0.85

Tested by

no test coverage detected