GitCommands.GitCommands.PullCmd C# (CSharp) Method

PullCmd() public static method

public static PullCmd ( string remote, string remoteBranch, string localBranch, bool rebase ) : string
remote string
remoteBranch string
localBranch string
rebase bool
return string
        public static string PullCmd(string remote, string remoteBranch, string localBranch, bool rebase)
        {
            var rebaseOption = "";
            if (rebase)
                rebaseOption = "--rebase ";

            return "pull " + rebaseOption + GetFetchArgs(remote, remoteBranch, localBranch);
        }
GitCommands