GitCommands.GitCommands.GetTreeFromRemoteHeands C# (CSharp) Method

GetTreeFromRemoteHeands() private static method

private static GetTreeFromRemoteHeands ( string remote, bool tags, bool branches ) : string
remote string
tags bool
branches bool
return string
        private static string GetTreeFromRemoteHeands(string remote, bool tags, bool branches)
        {
            if (tags && branches)
                return RunCmd(Settings.GitCommand, "ls-remote --heads --tags \"" + remote + "\"");
            if (tags)
                return RunCmd(Settings.GitCommand, "ls-remote --tags \"" + remote + "\"");
            if (branches)
                return RunCmd(Settings.GitCommand, "ls-remote --heads \"" + remote + "\"");
            return "";
        }
GitCommands