[PATCH] apply.c: handle incomplete lines correctly.
authorJunio C Hamano <junkio@cox.net>
Fri, 22 Jul 2005 16:56:39 +0000 (09:56 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 22 Jul 2005 17:26:01 +0000 (10:26 -0700)
commit8b64647dd9009f52e23e7fdb443b7b8f9502278a
treeb5bf78e0adb24a14571d4749b79cbad40da3aff4
parentf0b32737ad5a35cc047db47353a75faccfe5939e
[PATCH] apply.c: handle incomplete lines correctly.

The parsing code had a bug that failed to recognize an
incomplete line at the end of a fragment, and the fragment
application code had a comparison bug to recognize such.  Fix
them to handle incomplete lines correctly.

Add a test script for patches with various combinations of
complete and incomplete lines to make sure the fix works.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
apply.c
t/t4101-apply-nonl.sh [new file with mode: 0755]