mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 20:54:59 +00:00
feature: add a button in file histories view to reset selected file to selected commit
This commit is contained in:
parent
db8de81120
commit
9a68d70b29
3 changed files with 39 additions and 1 deletions
|
@ -79,6 +79,11 @@ namespace SourceGit.ViewModels
|
|||
_repo.NavigateToCommit(commit.SHA);
|
||||
}
|
||||
|
||||
public void ResetToSelectedRevision()
|
||||
{
|
||||
new Commands.Checkout(_repo.FullPath).FileWithRevision(_file, $"{_selectedCommit.SHA}");
|
||||
}
|
||||
|
||||
private void RefreshViewContent()
|
||||
{
|
||||
if (_selectedCommit == null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue