Do not automatically ignore paths not found by the treewalk
commit1e4a0eb84a28fa4e50240e05a145f8f5fb57c07e
authorAndrey Loskutov <loskutov@gmx.de>
Sun, 28 Jun 2015 15:00:50 +0000 (28 17:00 +0200)
committerAndrey Loskutov <loskutov@gmx.de>
Wed, 8 Jul 2015 05:00:44 +0000 (8 01:00 -0400)
tree110adaff653bac16c931d13c40d5a0b08c88d1ed
parentd459570fcb527de78697ec19b027aeaf00c08717
Do not automatically ignore paths not found by the treewalk

RepositoryUtil.isIgnored(path) is used to check if the resource should
be added to the .gitignore by IgnoreDerivedResources and
IgnoreOperation.

However if the TreeWalk can't *find* the path "isIgnored" returns
"false", but probably should return "true" in the same way as if the
mapping were missing.

To not break API, the old "isIgnored" method behavior is documented and
new "canBeAutoIgnored" method is used instead, with different behavior.
Added & fixed javadoc and tests.

Bug: 470820
Change-Id: Id732684999da1561bc3812fdb2daeee7a5fae369
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/ConnectProviderOperationTest.java
org.eclipse.egit.core/src/org/eclipse/egit/core/Activator.java
org.eclipse.egit.core/src/org/eclipse/egit/core/RepositoryUtil.java
org.eclipse.egit.core/src/org/eclipse/egit/core/op/IgnoreOperation.java