GitCommands.GitModule.FetchCmd C# (CSharp) Method

FetchCmd() public method

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

            if (string.IsNullOrEmpty(remote) && string.IsNullOrEmpty(remoteBranch) && string.IsNullOrEmpty(localBranch))
                return "fetch " + progressOption;

            return "fetch " + progressOption + GetFetchArgs(remote, remoteBranch, localBranch, fetchTags, isUnshallow);
        }
GitModule