GitCommands.GitCommands.AddSubmoduleCmd C# (CSharp) Method

AddSubmoduleCmd() public static method

public static AddSubmoduleCmd ( string remotePath, string localPath, string branch ) : string
remotePath string
localPath string
branch string
return string
        public static string AddSubmoduleCmd(string remotePath, string localPath, string branch)
        {
            remotePath = FixPath(remotePath);
            localPath = FixPath(localPath);

            if (!string.IsNullOrEmpty(branch))
                branch = " -b \"" + branch.Trim() + "\"";

            return "submodule add" + branch + " \"" + remotePath.Trim() + "\" \"" + localPath.Trim() + "\"";
        }
GitCommands