mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00:00
feature<FileHistory>: add button to use selected revision of file
This commit is contained in:
parent
9d6ac9c449
commit
7e1b1d7324
5 changed files with 44 additions and 1 deletions
|
@ -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 --");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue