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.
This commit is contained in:
parent
1a93a7662d
commit
f7b797073c
3
apply.c
3
apply.c
@ -1186,6 +1186,9 @@ static void write_out_one_result(struct patch *patch)
|
|||||||
|
|
||||||
static void write_out_results(struct patch *list)
|
static void write_out_results(struct patch *list)
|
||||||
{
|
{
|
||||||
|
if (!list)
|
||||||
|
die("No changes");
|
||||||
|
|
||||||
while (list) {
|
while (list) {
|
||||||
write_out_one_result(list);
|
write_out_one_result(list);
|
||||||
list = list->next;
|
list = list->next;
|
||||||
|
Loading…
Reference in New Issue
Block a user