public void revert(final VirtualFile root,final List<FilePath> files) throws VcsException {
  for (  List<String> paths : VcsFileUtil.chunkPaths(root,files)) {
    GitSimpleHandler handler=new GitSimpleHandler(myProject,root,GitCommand.CHECKOUT);
    handler.addParameters("HEAD");
    handler.endOptions();
    handler.addParameters(paths);
    handler.run();
  }
}

public void revert ( final VirtualFile root , final List < FilePath > files ) throws VcsException { for ( List < String > paths : VcsFileUtil . chunkPaths ( root , files ) ) { GitSimpleHandler handler = new GitSimpleHandler ( myProject , root , GitCommand . CHECKOUT ) ; handler . addParameters ( "HEAD" ) ; handler . endOptions ( ) ; handler . addParameters ( paths ) ; handler . run ( ) ; } }
reverts the list of files we are passed .
