MCPcopy Index your code
hub / github.com/git/git / should_edit

Function should_edit

sequencer.c:2203–2212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2201}
2202
2203static int should_edit(struct replay_opts *opts) {
2204 if (opts->edit < 0)
2205 /*
2206 * Note that we only handle the case of non-conflicted
2207 * commits; continue_single_pick() handles the conflicted
2208 * commits itself instead of calling this function.
2209 */
2210 return (opts->action == REPLAY_REVERT && isatty(0)) ? 1 : 0;
2211 return opts->edit;
2212}
2213
2214static void refer_to_commit(struct repository *r, struct strbuf *msgbuf,
2215 const struct commit *commit,

Callers 2

do_pick_commitFunction · 0.85
pick_commitsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected