mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 04:04:59 +00:00
feature: add button to navigate to current HEAD (#50)
This commit is contained in:
parent
09720f81d4
commit
d986aa7165
7 changed files with 32 additions and 1 deletions
|
@ -414,6 +414,13 @@ namespace SourceGit.ViewModels
|
|||
}
|
||||
}
|
||||
|
||||
public void NavigateToCurrentHead()
|
||||
{
|
||||
var cur = Branches.Find(x => x.IsCurrent);
|
||||
if (cur != null)
|
||||
NavigateToCommit(cur.Head);
|
||||
}
|
||||
|
||||
public void UpdateFilter(string filter, bool toggle)
|
||||
{
|
||||
var changed = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue