diff options
author | Thomas Wolf <thomas.wolf@paranor.ch> | 2020-04-24 15:00:01 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2020-06-04 22:16:12 +0200 |
commit | ed481f96b811c2c50d58f35200657484320621dc (patch) | |
tree | 35bf03b7c38584bfec6b951919dd36ed393d9c4a /org.eclipse.jgit.packaging | |
parent | e3f7a06764b5599ae47f23005ed6dccaf38ba7c8 (diff) | |
download | jgit-ed481f96b811c2c50d58f35200657484320621dc.tar.gz jgit-ed481f96b811c2c50d58f35200657484320621dc.zip |
ApplyCommand: use context lines to determine hunk location
If a hunk does not apply at the position stated in the hunk header
try to determine its position using the old lines (context and
deleted lines).
This is still a far cry from a full git apply: it doesn't do binary
patches, it doesn't handle git's whitespace options, and it's perhaps
not the fastest on big patches. C git hashes the lines and uses these
hashes to speed up matching hunks (and to do its whitespace magic).
Bug: 562348
Change-Id: Id0796bba059d84e648769d5896f497fde0b787dd
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jgit.packaging')
0 files changed, 0 insertions, 0 deletions