projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a93a76
)
git-apply: consider it an error to apply no changes
author
Linus Torvalds
<torvalds@ppc970.osdl.org>
Sun, 5 Jun 2005 22:25:28 +0000
(15:25 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Sun, 5 Jun 2005 22:25:28 +0000
(15:25 -0700)
A "--stat" or a "--check" will just be quiet, but if
you try to apply something with no changes, that's an
error.
apply.c
patch
|
blob
|
history
diff --git
a/apply.c
b/apply.c
index e02e760be2c4e55659187b362406a129fd908f22..ec63a0c1e0a68ebbd003ebe90776e12b42b081e7 100644
(file)
--- a/
apply.c
+++ b/
apply.c
@@
-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;