Repository repo = Git.getInstance().getRepository(root);
Map<File, StatusInfo> files = new HashMap<File, StatusInfo>();
try {
IndexDiff index = new IndexDiff(repo);
index.diff();
put(index.getAdded(), relPath, files, root,
StatusInfo.STATUS_VERSIONED_ADDEDLOCALLY);
put(index.getRemoved(), relPath, files, root,
StatusInfo.STATUS_VERSIONED_REMOVEDLOCALLY);