for (StagingEntry entry : content)
if (entry.getPath().equals(res))
nodes.remove(entry);
}
final IndexDiffData indexDiff = update.indexDiff;
if (unstagedSection) {
for (String file : indexDiff.getMissing())
if (indexDiff.getChanged().contains(file))
nodes.add(new StagingEntry(repository, MISSING_AND_CHANGED,
file));
else
nodes.add(new StagingEntry(repository, MISSING, file));
for (String file : indexDiff.getModified())
if (indexDiff.getChanged().contains(file))
nodes.add(new StagingEntry(repository, MODIFIED_AND_CHANGED,
file));
else if (indexDiff.getAdded().contains(file))
nodes.add(new StagingEntry(repository, MODIFIED_AND_ADDED,
file));
else
nodes.add(new StagingEntry(repository, MODIFIED, file));
for (String file : indexDiff.getUntracked())
nodes.add(new StagingEntry(repository, UNTRACKED, file));
for (String file : indexDiff.getConflicting())
nodes.add(new StagingEntry(repository, CONFLICTING, file));
} else {
for (String file : indexDiff.getAdded())
nodes.add(new StagingEntry(repository, ADDED, file));
for (String file : indexDiff.getChanged())
nodes.add(new StagingEntry(repository, CHANGED, file));
for (String file : indexDiff.getRemoved())
nodes.add(new StagingEntry(repository, REMOVED, file));
}
try {
SubmoduleWalk walk = SubmoduleWalk.forIndex(repository);