addFiles(project, affectedFiles);
}
public static void addFiles(@NotNull Project project, @NotNull VirtualFile[] files) throws VcsException {
final Map<VirtualFile, List<VirtualFile>> roots = GitUtil.sortFilesByGitRoot(Arrays.asList(files));
for (Map.Entry<VirtualFile, List<VirtualFile>> entry : roots.entrySet()) {
<BUG>GitSimpleHandler h = GitSimpleHandler.addFiles(project, entry.getKey(), entry.getValue());

h.run();</BUG>
}
VcsDirtyScopeManager mgr = VcsDirtyScopeManager.getInstance(project);

addFiles(project, affectedFiles);
}
public static void addFiles(@NotNull Project project, @NotNull VirtualFile[] files) throws VcsException {
final Map<VirtualFile, List<VirtualFile>> roots = GitUtil.sortFilesByGitRoot(Arrays.asList(files));
for (Map.Entry<VirtualFile, List<VirtualFile>> entry : roots.entrySet()) {
GitFileUtils.addFiles(project, entry.getKey(), entry.getValue());
}
VcsDirtyScopeManager mgr = VcsDirtyScopeManager.getInstance(project);
