mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00:00
feature: add CurrentBranch
property to ViewModels.Repository
This commit is contained in:
parent
f8caeceade
commit
6f317039ab
4 changed files with 63 additions and 64 deletions
|
@ -90,7 +90,7 @@ namespace SourceGit.ViewModels
|
|||
{
|
||||
if (SetProperty(ref _useAmend, value) && value)
|
||||
{
|
||||
var currentBranch = _repo.Branches.Find(x => x.IsCurrent);
|
||||
var currentBranch = _repo.CurrentBranch;
|
||||
if (currentBranch == null)
|
||||
{
|
||||
App.RaiseException(_repo.FullPath, "No commits to amend!!!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue