Skip to content

Commit

Permalink
git-apply: consider it an error to apply no changes
Browse files Browse the repository at this point in the history
A "--stat" or a "--check" will just be quiet, but if
you try to apply something with no changes, that's an
error.
  • Loading branch information
Linus Torvalds committed Jun 5, 2005
1 parent 1a93a76 commit f7b7970
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f7b7970

Please sign in to comment.