mirror of
https://github.com/git/git.git
synced 2024-10-28 21:07:52 +01:00
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
1 changed files with 3 additions and 0 deletions
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)
|
||||
{
|
||||
if (!list)
|
||||
die("No changes");
|
||||
|
||||
while (list) {
|
||||
write_out_one_result(list);
|
||||
list = list->next;
|
||||
|
|
Loading…
Reference in a new issue