GitCommands.GitModule.PullCmd C# (CSharp) Method

PullCmd() public method

public PullCmd ( string remote, string remoteBranch, string localBranch, bool rebase, bool fetchTags = false, bool isUnshallow = false ) : string
remote string
remoteBranch string
localBranch string
rebase bool
fetchTags bool
isUnshallow bool
return string
        public string PullCmd(string remote, string remoteBranch, string localBranch, bool rebase, bool? fetchTags = false, bool isUnshallow = false)
        {
            var pullArgs = "";
            if (GitCommandHelpers.VersionInUse.FetchCanAskForProgress)
                pullArgs = "--progress ";

            if (rebase)
                pullArgs = "--rebase".Combine(" ", pullArgs);

            return "pull " + pullArgs + GetFetchArgs(remote, remoteBranch, localBranch, fetchTags, isUnshallow);
        }
GitModule