"Johannes Schindelin via GitGitGadget" [off-list ref]
writes:
quoted hunk ↗ jump to hunk
@@ -778,7 +798,9 @@ static void do_rerere_one_path(struct index_state *istate,
assign_variant(id);
variant = id->variant;
- handle_file(istate, path, NULL, rerere_path(&buf, id, "preimage"));
+ if (handle_file(istate, path, NULL,
+ rerere_path(&buf, id, "preimage")) < 0)
+ goto out;
if (id->collection->status[variant] & RR_HAS_POSTIMAGE) {
const char *path = rerere_path(&buf, id, "postimage");
if (unlink(path))
Good to see this one, which is the only unchecked call to the
handle_file() function, checked for an error. Looking good.
Thanks.