diff options
author | KB Sriram <kbsriram@google.com> | 2017-03-22 11:42:38 -0700 |
---|---|---|
committer | KB Sriram <kbsriram@google.com> | 2017-04-03 16:45:13 -0700 |
commit | 4a985f5aa858a71561d55c9eb3ce007768c4d0c0 (patch) | |
tree | 8c0020ca1999be62213bea84b0655e493fe7269d /org.eclipse.jgit/src/org/eclipse/jgit/lib/package-info.java | |
parent | 61e336475db27cb11cc370a9947bf6529e34daa0 (diff) | |
download | jgit-4a985f5aa858a71561d55c9eb3ce007768c4d0c0.tar.gz jgit-4a985f5aa858a71561d55c9eb3ce007768c4d0c0.zip |
Make diff locations more consistent
DiffAlgorithms can return different edit locations for inserts or
deletes, if they can be "shifted" up or down repeating blocks of
lines. This causes the 3-way merge to apply both edits, resulting in
incorrectly removing or duplicating lines.
Augment an existing "tidy-up" stage in DiffAlgorithm to move all
shiftable edits (not just the last INSERT edit) to a consistent
location, and add test cases for previously incorrect merges.
Bug: 514095
Change-Id: I5fe150a2fc04e1cdb012d22609d86df16dfb0b7e
Signed-off-by: KB Sriram <kbsriram@google.com>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/lib/package-info.java')
0 files changed, 0 insertions, 0 deletions