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

Function rollback_index_files

builtin/commit.c:217–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217static void rollback_index_files(void)
218{
219 switch (commit_style) {
220 case COMMIT_AS_IS:
221 break; /* nothing to do */
222 case COMMIT_NORMAL:
223 rollback_lock_file(&index_lock);
224 break;
225 case COMMIT_PARTIAL:
226 rollback_lock_file(&index_lock);
227 rollback_lock_file(&false_lock);
228 break;
229 }
230}
231
232static int commit_index_files(void)
233{

Callers 2

dry_run_commitFunction · 0.85
cmd_commitFunction · 0.85

Calls 1

rollback_lock_fileFunction · 0.85

Tested by

no test coverage detected