diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-05 15:25:28 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-05 15:25:28 -0700 |
commit | f7b797073c2286fff8c4d46842ed00d868f3b2fa (patch) | |
tree | 90cc322268d343db7f267c8bb65c5471c48ed24e | |
parent | 1a93a7662d6f8c3a4f48cb9468eb494ec823f2a5 (diff) | |
download | git-f7b797073c2286fff8c4d46842ed00d868f3b2fa.tar.gz git-f7b797073c2286fff8c4d46842ed00d868f3b2fa.tar.xz |
git-apply: consider it an error to apply no changes
A "--stat" or a "--check" will just be quiet, but if
you try to apply something with no changes, that's an
error.
-rw-r--r-- | apply.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1186,6 +1186,9 @@ static void write_out_one_result(struct patch *patch) static void write_out_results(struct patch *list) { + if (!list) + die("No changes"); + while (list) { write_out_one_result(list); list = list->next; |