fails, but go on and return error code at the end. It makes sense
to try to merge everything, then let the user solve the commits
at once.
static const char *pgm = NULL;
static const char *arguments[8];
+static int err;
static void run_program(void)
{
die("unable to execute '%s'", pgm);
}
if (waitpid(pid, &status, 0) < 0 || !WIFEXITED(status) || WEXITSTATUS(status))
- die("merge program failed");
+ err++;
}
static int merge_entry(int pos, const char *path)
}
merge_file(arg);
}
+ if (err)
+ die("merge program failed");
return 0;
}