]> source.dussan.org Git - jgit.git/commit
Add detection of untracked folders to IndexDiffFilter 85/4385/6
authorJens Baumgart <jens.baumgart@sap.com>
Wed, 26 Oct 2011 12:00:48 +0000 (14:00 +0200)
committerChris Aniszczyk <zx@twitter.com>
Thu, 10 Nov 2011 19:15:26 +0000 (11:15 -0800)
commit53ef3e51145adb4b060110e262d7c064be0d5fc5
treee90afe8c39ca4945254aba21f3d8fe08f0464689
parent92752f6b50ba8c2a1d1946abac0064ea2e318591
Add detection of untracked folders to IndexDiffFilter

Decorators need to know whether folders in the working tree contain only
untracked files. This change enhances IndexDiffFilter to report such
folders. This works only together with treewalks which operate in
default traversal mode. For treewalks which process entries in
postorder mode (files are walked before their parent folder is walked)
this detection doesn't work.

Bug: 359264
Change-Id: I9298d1e3ccac0aec8bbd4e8ac867bc06a5c89c9f
Signed-off-by: Christian Halstrick <christian.halstrick@sap.com>
Signed-off-by: Jens Baumgart <jens.baumgart@sap.com>
Signed-off-by: Chris Aniszczyk <zx@twitter.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/IndexDiffTest.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/IndexDiff.java
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/filter/IndexDiffFilter.java