author | Junio C Hamano <junkio@cox.net> | |
Fri, 22 Jul 2005 16:56:39 +0000 (09:56 -0700) | ||
committer | Linus Torvalds <torvalds@g5.osdl.org> | |
Fri, 22 Jul 2005 17:26:01 +0000 (10:26 -0700) | ||
commit | 8b64647dd9009f52e23e7fdb443b7b8f9502278a | |
tree | b5bf78e0adb24a14571d4749b79cbad40da3aff4 | tree | snapshot |
parent | f0b32737ad5a35cc047db47353a75faccfe5939e | commit | diff |
[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>
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 | diff | blob | history | |
t/t4101-apply-nonl.sh | [new file with mode: 0755] | blob |