| 2201 | } |
| 2202 | |
| 2203 | static 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 | |
| 2214 | static void refer_to_commit(struct repository *r, struct strbuf *msgbuf, |
| 2215 | const struct commit *commit, |
no outgoing calls
no test coverage detected