/// <summary> /// Revert a file or folder. /// </summary> /// <param name="path">The path to the file or folder.</param> void RevertFile(string path) { RepositoryManager.Checkout(path); treeModel.SetData(CommitTreeParser.GenerateCommitTree()); Reload(); }