Re: [PATCH 2/9] Fix detection of files with only one line in git-apply.

2005-08-28 Thread Linus Torvalds
On Sun, 28 Aug 2005, Robert Fitzsimons wrote: > > A patch which added one line to an empty file or removed the only line > from a one line file would be incorrectly detected as an invalid new > or delete patch. Added a new test case. This patch looks wrong or at least needs some more thought. T

[PATCH 2/9] Fix detection of files with only one line in git-apply.

2005-08-28 Thread Robert Fitzsimons
A patch which added one line to an empty file or removed the only line from a one line file would be incorrectly detected as an invalid new or delete patch. Added a new test case. Signed-off-by: Robert Fitzsimons <[EMAIL PROTECTED]> --- apply.c |4 ++-- t/t4103-apply-oneli