feature<FileHistory>: add button to use selected revision of file

This commit is contained in:
leo 2023-08-18 14:13:32 +08:00
parent 9d6ac9c449
commit 7e1b1d7324
5 changed files with 44 additions and 1 deletions

View file

@ -37,6 +37,11 @@ namespace SourceGit.Commands {
return Exec();
}
public bool FileWithRevision(string file, string revision) {
Args = $"checkout {revision} -- \"{file}\"";
return Exec();
}
public bool Files(List<string> files) {
StringBuilder builder = new StringBuilder();
builder.Append("checkout -f -q --");