public File makeDirty() throws IOException {
  File f=File.createTempFile("dirty",".tmp",repositoryLocation.getParentFile());
  FileWriter fw=new FileWriter(f);
  fw.write("" + System.currentTimeMillis());
  fw.flush();
  fw.close();
  return f;
}

public File makeDirty ( ) throws IOException { File f = File . createTempFile ( "dirty" , ".tmp" , repositoryLocation . getParentFile ( ) ) ; FileWriter fw = new FileWriter ( f ) ; fw . write ( "" + System . currentTimeMillis ( ) ) ; fw . flush ( ) ; fw . close ( ) ; return f ; }
creates a new file with dummy content inside the git repository to make it dirty .
