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

Function record_in_rewritten

sequencer.c:2188–2201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2186}
2187
2188static 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
2203static int should_edit(struct replay_opts *opts) {
2204 if (opts->edit < 0)

Callers 4

pick_one_commitFunction · 0.85
pick_commitsFunction · 0.85
sequencer_continueFunction · 0.85
skip_unnecessary_picksFunction · 0.85

Calls 4

fopen_or_warnFunction · 0.85
oid_to_hexFunction · 0.85
is_fixupFunction · 0.85
flush_rewritten_pendingFunction · 0.85

Tested by

no test coverage detected