]> source.dussan.org Git - jgit.git/commit
Revert 4678f4b and provide another solution for bug 467631 42/138442/3
authorThomas Wolf <thomas.wolf@paranor.ch>
Sun, 10 Mar 2019 17:02:54 +0000 (18:02 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Sat, 20 Apr 2019 09:19:34 +0000 (11:19 +0200)
commit8277f62897a99539c6a3654e3a9ae8357d0f74be
treeb7af9d907be807d35a4220003c89d44b2ad50c0a
parent62675c48de09a30c769bcba06ebf5a312d3b9f8b
Revert 4678f4b and provide another solution for bug 467631

Making gitlinks and folders match in a tree walk was the wrong
approach to fix bug 467631. The problem is that in such a conflict
the tree walk may then not descend into the folder.

Revert the changes to Paths.java and PathsTest.java from commit
4678f4b. Instead test for the problem case from bug 467631 explicitly
in IndexDiff. Add Daniel's test case from bug 545162, and add yet
another test case for DiffEntry.scan() that covers the problem
originally reported in bug 545162.

Bug: 545162
Change-Id: Ie2214c5d5ee32ac6596b621f0f1c7b86d38fa9b7
Also-by: Daniel Veihelmann <daniel.veihelmann@gmail.com>
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/DiffEntryTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/IndexDiffSubmoduleTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/PathsTest.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/IndexDiff.java
org.eclipse.jgit/src/org/eclipse/jgit/util/Paths.java