feature: allow changing of tracking branch on push (#142)

This commit is contained in:
leo 2024-05-25 11:37:06 +08:00
parent 8e3a8f4c06
commit 754a2527f5
4 changed files with 15 additions and 5 deletions

View file

@ -82,6 +82,12 @@ namespace SourceGit.ViewModels
set;
}
public bool Tracking
{
get;
set;
} = true;
public bool ForcePush
{
get;
@ -154,7 +160,7 @@ namespace SourceGit.ViewModels
remoteBranchName,
PushAllTags,
ForcePush,
string.IsNullOrEmpty(_selectedLocalBranch.Upstream),
Tracking,
SetProgressDescription).Exec();
CallUIThread(() => _repo.SetWatcherEnabled(true));
return succ;