private static boolean updateIndex(final Project project,final VirtualFile root,final Collection<FilePath> added,final Collection<FilePath> removed,final List<VcsException> exceptions){
  boolean rc=true;
  if (!added.isEmpty()) {
    try {
      GitFileUtils.addPaths(project,root,added);
    }
 catch (    VcsException ex) {
      exceptions.add(ex);
      rc=false;
    }
  }
  if (!removed.isEmpty()) {
    try {
      GitFileUtils.delete(project,root,removed,"--ignore-unmatch");
    }
 catch (    VcsException ex) {
      exceptions.add(ex);
      rc=false;
    }
  }
  return rc;
}

private static boolean updateIndex ( final Project project , final VirtualFile root , final Collection < FilePath > added , final Collection < FilePath > removed , final List < VcsException > exceptions ) { boolean rc = true ; if ( ! added . isEmpty ( ) ) { try { GitFileUtils . addPaths ( project , root , added ) ; } catch ( VcsException ex ) { exceptions . add ( ex ) ; rc = false ; } } if ( ! removed . isEmpty ( ) ) { try { GitFileUtils . delete ( project , root , removed , "--ignore-unmatch" ) ; } catch ( VcsException ex ) { exceptions . add ( ex ) ; rc = false ; } } return rc ; }
update index ( delete and remove files )
