|
|
@ -132,6 +132,7 @@ public class IndexDiffFilter extends TreeFilter { |
|
|
|
IncorrectObjectTypeException, IOException { |
|
|
|
IncorrectObjectTypeException, IOException { |
|
|
|
final int cnt = tw.getTreeCount(); |
|
|
|
final int cnt = tw.getTreeCount(); |
|
|
|
final int wm = tw.getRawMode(workingTree); |
|
|
|
final int wm = tw.getRawMode(workingTree); |
|
|
|
|
|
|
|
WorkingTreeIterator wi = workingTree(tw); |
|
|
|
String path = tw.getPathString(); |
|
|
|
String path = tw.getPathString(); |
|
|
|
|
|
|
|
|
|
|
|
DirCacheIterator di = tw.getTree(dirCache, DirCacheIterator.class); |
|
|
|
DirCacheIterator di = tw.getTree(dirCache, DirCacheIterator.class); |
|
|
@ -148,7 +149,8 @@ public class IndexDiffFilter extends TreeFilter { |
|
|
|
// contain only untracked files and add it to
|
|
|
|
// contain only untracked files and add it to
|
|
|
|
// untrackedParentFolders. If we later find tracked files we will
|
|
|
|
// untrackedParentFolders. If we later find tracked files we will
|
|
|
|
// remove it from this list
|
|
|
|
// remove it from this list
|
|
|
|
if (FileMode.TREE.equals(wm)) { |
|
|
|
if (FileMode.TREE.equals(wm) |
|
|
|
|
|
|
|
&& !(honorIgnores && wi.isEntryIgnored())) { |
|
|
|
// Clean untrackedParentFolders. This potentially moves entries
|
|
|
|
// Clean untrackedParentFolders. This potentially moves entries
|
|
|
|
// from untrackedParentFolders to untrackedFolders
|
|
|
|
// from untrackedParentFolders to untrackedFolders
|
|
|
|
copyUntrackedFolders(path); |
|
|
|
copyUntrackedFolders(path); |
|
|
@ -179,7 +181,6 @@ public class IndexDiffFilter extends TreeFilter { |
|
|
|
// we can avoid returning a result here, but only if its not in any
|
|
|
|
// we can avoid returning a result here, but only if its not in any
|
|
|
|
// other tree.
|
|
|
|
// other tree.
|
|
|
|
final int dm = tw.getRawMode(dirCache); |
|
|
|
final int dm = tw.getRawMode(dirCache); |
|
|
|
WorkingTreeIterator wi = workingTree(tw); |
|
|
|
|
|
|
|
if (dm == FileMode.TYPE_MISSING) { |
|
|
|
if (dm == FileMode.TYPE_MISSING) { |
|
|
|
if (honorIgnores && wi.isEntryIgnored()) { |
|
|
|
if (honorIgnores && wi.isEntryIgnored()) { |
|
|
|
ignoredPaths.add(wi.getEntryPathString()); |
|
|
|
ignoredPaths.add(wi.getEntryPathString()); |
|
|
|