GitCommands.GitCommands.Tag C# (CSharp) Method

Tag() public static method

public static Tag ( string tagName, string revision, bool annotation ) : string
tagName string
revision string
annotation bool
return string
        public static string Tag(string tagName, string revision, bool annotation)
        {
            string result;

            if (annotation)
                result = RunCmd(Settings.GitCommand,
                                "tag \"" + tagName.Trim() + "\" -a -F \"" + Settings.WorkingDirGitDir() +
                                "\\TAGMESSAGE\" -- \"" + revision + "\"");
            else
                result = RunCmd(Settings.GitCommand, "tag \"" + tagName.Trim() + "\" \"" + revision + "\"");

            return result;
        }
GitCommands