feature: supports --no-tags on fetch and pull operation (#226)

This commit is contained in:
leo 2024-07-01 16:19:08 +08:00
parent de1a4d14e8
commit 6dad466eef
No known key found for this signature in database
10 changed files with 46 additions and 12 deletions

View file

@ -59,6 +59,12 @@ namespace SourceGit.ViewModels
set => _repo.Settings.PreferRebaseInsteadOfMerge = value;
}
public bool NoTags
{
get;
set;
} = false;
public Pull(Repository repo, Models.Branch specifiedRemoteBranch)
{
_repo = repo;
@ -145,7 +151,7 @@ namespace SourceGit.ViewModels
}
SetProgressDescription($"Pull {_selectedRemote.Name}/{_selectedBranch.Name}...");
var rs = new Commands.Pull(_repo.FullPath, _selectedRemote.Name, _selectedBranch.Name, UseRebase, SetProgressDescription).Exec();
var rs = new Commands.Pull(_repo.FullPath, _selectedRemote.Name, _selectedBranch.Name, UseRebase, NoTags, SetProgressDescription).Exec();
if (rs && needPopStash)
{
SetProgressDescription("Re-apply local changes...");