GitCommands.GitCommands.CommitCmd C# (CSharp) Method

CommitCmd() public static method

public static CommitCmd ( bool amend ) : string
amend bool
return string
        public static string CommitCmd(bool amend)
        {
            var path = Settings.WorkingDirGitDir() + Settings.PathSeperator + "COMMITMESSAGE\"";
            if (amend)
                return "commit --amend -F \"" + path;
            return "commit  -F \"" + path;
        }
GitCommands