summaryrefslogtreecommitdiff
path: root/config.mak.in
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-01-26 17:42:49 -0800
committerJunio C Hamano <gitster@pobox.com>2008-02-05 00:38:41 -0800
commitb94f2eda99646fea71f84ccd895d94b0001d0db6 (patch)
tree876414083f4b3e2d70922f756bb40bf87b74b61f /config.mak.in
parentdc41976a3eed1d9c93fdc08c448bab969db4e0ec (diff)
downloadgit-b94f2eda99646fea71f84ccd895d94b0001d0db6.tar.gz
builtin-apply.c: make it more line oriented
This changes the way git-apply internally works to be more line oriented. The logic to find where the patch applies with offset used to count line numbers by always counting LF from the beginning of the buffer, but it is simplified because we count the line length of the target file and the preimage snippet upfront now. The ultimate motivation is to allow applying patches whose preimage context has whitespace corruption that has already been corrected in the local copy. For that purpose, we introduce a table of line-hash that allows us to match lines that differ only in whitespaces. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.mak.in')
0 files changed, 0 insertions, 0 deletions