Adding checkout commit menu and dialog

This commit is contained in:
Filipe Ramalho 2024-05-25 15:11:24 -03:00
parent b0c00340a8
commit 8aa1690cde
7 changed files with 181 additions and 0 deletions

View file

@ -722,6 +722,14 @@ namespace SourceGit.ViewModels
PopupHost.ShowAndStartPopup(new Checkout(this, branch));
}
public void CheckoutCommit(string commit)
{
if (!PopupHost.CanCreatePopup())
return;
PopupHost.ShowPopup(new CheckoutCommit(this, commit));
}
public void CreateNewTag()
{
var current = Branches.Find(x => x.IsCurrent);