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:
Linus Torvalds 2005-06-05 15:25:28 -07:00
parent 1a93a7662d
commit f7b797073c

View file

@ -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;