Subject: | Handling incomplete lines |
VCS-Lite-0.07 doesn't have any handling of "incomplete lines" (lines without terminating line breaks) as described at http://www.gnu.org/software/diffutils/manual/html_mono/diff.html#Incomplete%20Lines
The VCS::Lite::Delta::diff and ::udiff methods generate malformed diffs when dealing with incomplete lines, and there is no support for patching when the patch contains the "\ No newline at end of file" marker.
The attached patch implements support for both generating and applying diffs with the "\ No newline at end of file" marker. (The four files in the data directory are test data referenced by the test scripts.)
colin
Message body not shown because it is not plain text.