]> source.dussan.org Git - jgit.git/commit
Exclude file matching: fix backtracking on match failures after ** 27/103027/6
authorThomas Wolf <thomas.wolf@paranor.ch>
Sun, 13 Aug 2017 13:08:16 +0000 (15:08 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Sun, 27 Aug 2017 14:02:41 +0000 (16:02 +0200)
commitd031b6466757ddaa3ef453d4b9d385b0d35d7ab1
tree9fe0426daba2b10aea95b245eb615333af0f4d57
parentd80b999c76ef7c02c39810d071ec20acaf7d200a
Exclude file matching: fix backtracking on match failures after **

** matching always tries the empty match first. If a mismatch occurs
later, the ** must be extended by exactly one segment and matching must
resume with the matcher following the ** matcher.

Bug: 520920
Change-Id: Id019ad1c773bd645ae92e398021952f8e961f45c
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit.test/tst/org/eclipse/jgit/attributes/AttributesHandlerTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/attributes/CGitAttributesTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/ignore/CGitIgnoreTest.java
org.eclipse.jgit/src/org/eclipse/jgit/ignore/internal/PathMatcher.java