mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
21 lines
552 B
C#
21 lines
552 B
C#
namespace SourceGit.Commands
|
|
{
|
|
public class Pull : Command
|
|
{
|
|
public Pull(string repo, string remote, string branch, bool useRebase, bool noTags)
|
|
{
|
|
WorkingDirectory = repo;
|
|
Context = repo;
|
|
SSHKey = new Config(repo).Get($"remote.{remote}.sshkey");
|
|
Args = "pull --verbose --progress ";
|
|
|
|
if (useRebase)
|
|
Args += "--rebase=true ";
|
|
|
|
if (noTags)
|
|
Args += "--no-tags ";
|
|
|
|
Args += $"{remote} {branch}";
|
|
}
|
|
}
|
|
}
|