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

Function error_dirty_index

sequencer.c:619–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

617}
618
619static int error_dirty_index(struct repository *repo, struct replay_opts *opts)
620{
621 if (repo_read_index_unmerged(repo))
622 return error_resolve_conflict(action_name(opts));
623
624 error(_("your local changes would be overwritten by %s."),
625 _(action_name(opts)));
626
627 if (advice_enabled(ADVICE_COMMIT_BEFORE_MERGE))
628 advise(_("commit your changes or stash them to proceed."));
629 return -1;
630}
631
632static void update_abort_safety_file(void)
633{

Callers 2

do_pick_commitFunction · 0.85
sequencer_continueFunction · 0.85

Calls 6

repo_read_index_unmergedFunction · 0.85
error_resolve_conflictFunction · 0.85
errorFunction · 0.85
advice_enabledFunction · 0.85
adviseFunction · 0.85
action_nameFunction · 0.70

Tested by

no test coverage detected