summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e7d3dd2)
raw | patch | inline | side by side (parent: e7d3dd2)
author | Petr Baudis <pasky@ucw.cz> | |
Tue, 19 Apr 2005 02:16:15 +0000 (04:16 +0200) | ||
committer | Petr Baudis <xpasky@machine.sinus.cz> | |
Sat, 7 May 2005 14:09:44 +0000 (16:09 +0200) |
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.
to try to merge everything, then let the user solve the commits
at once.
merge-cache.c | patch | blob | history |
diff --git a/merge-cache.c b/merge-cache.c
index 11079b1cda9c50856a636a19bc41204903f1b522..b2977cf16c3b1f98304bf4b1630947409560e80f 100644 (file)
--- a/merge-cache.c
+++ b/merge-cache.c
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;
}