| 2186 | } |
| 2187 | |
| 2188 | static void record_in_rewritten(struct object_id *oid, |
| 2189 | enum todo_command next_command) |
| 2190 | { |
| 2191 | FILE *out = fopen_or_warn(rebase_path_rewritten_pending(), "a"); |
| 2192 | |
| 2193 | if (!out) |
| 2194 | return; |
| 2195 | |
| 2196 | fprintf(out, "%s\n", oid_to_hex(oid)); |
| 2197 | fclose(out); |
| 2198 | |
| 2199 | if (!is_fixup(next_command)) |
| 2200 | flush_rewritten_pending(); |
| 2201 | } |
| 2202 | |
| 2203 | static int should_edit(struct replay_opts *opts) { |
| 2204 | if (opts->edit < 0) |
no test coverage detected