mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 20:54:59 +00:00
feature: add an option to enable --recurse-submodules=check
on push (#345)
This commit is contained in:
parent
d66053a42d
commit
d4a9343eaf
7 changed files with 39 additions and 10 deletions
|
@ -62,12 +62,6 @@ namespace SourceGit.ViewModels
|
|||
}
|
||||
}
|
||||
|
||||
public bool PushAllTags
|
||||
{
|
||||
get => _repo.Settings.PushAllTags;
|
||||
set => _repo.Settings.PushAllTags = value;
|
||||
}
|
||||
|
||||
public bool IsSetTrackOptionVisible
|
||||
{
|
||||
get => _isSetTrackOptionVisible;
|
||||
|
@ -80,6 +74,23 @@ namespace SourceGit.ViewModels
|
|||
set;
|
||||
} = true;
|
||||
|
||||
public bool IsCheckSubmodulesVisible
|
||||
{
|
||||
get => _repo.Submodules.Count > 0;
|
||||
}
|
||||
|
||||
public bool CheckSubmodules
|
||||
{
|
||||
get;
|
||||
set;
|
||||
} = true;
|
||||
|
||||
public bool PushAllTags
|
||||
{
|
||||
get => _repo.Settings.PushAllTags;
|
||||
set => _repo.Settings.PushAllTags = value;
|
||||
}
|
||||
|
||||
public bool ForcePush
|
||||
{
|
||||
get;
|
||||
|
@ -151,8 +162,9 @@ namespace SourceGit.ViewModels
|
|||
_selectedRemote.Name,
|
||||
remoteBranchName,
|
||||
PushAllTags,
|
||||
ForcePush,
|
||||
_repo.Submodules.Count > 0 && CheckSubmodules,
|
||||
_isSetTrackOptionVisible && Tracking,
|
||||
ForcePush,
|
||||
SetProgressDescription).Exec();
|
||||
CallUIThread(() => _repo.SetWatcherEnabled(true));
|
||||
return succ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue