GitCommands.GitCommands.RevertCmd C# (CSharp) Method

RevertCmd() public static method

public static RevertCmd ( string commit, bool autoCommit ) : string
commit string
autoCommit bool
return string
        public static string RevertCmd(string commit, bool autoCommit)
        {
            if (autoCommit)
                return "revert " + commit;
            return "revert --no-commit " + commit;
        }
GitCommands