﻿using System;

namespace Sep.Git.Tfs
{
    public static class GitTfsExitCodes
    {
        public const int OK = 0;
        public const int Help = 1;
        public const int InvalidArguments = 2;
        public const int ForceRequired = 3;
        public const int ExceptionThrown = Byte.MaxValue - 1;
    }
}

﻿using System;

namespace Sep.Git.Tfs
{
    /// <summary>
    ///     Collection of exit codes used by git-tfs.
    /// </summary>
    /// <remarks>
    ///     For consistency across all running environments, both various
    ///     Windows - shells (powershell.exe, cmd.exe) and UNIX - like environments
    ///     such as bash (MinGW), sh or zsh avoid using negative exit status codes
    ///     or codes 255 or higher.
    /// 
    ///     Some running environments might either modulo exit codes with 256 or clamp
    ///     them to interval [0, 255].
    ///     
    ///     For more information:
    ///     http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
    ///     http://tldp.org/LDP/abs/html/exitcodes.html
    /// </remarks>
    public static class GitTfsExitCodes
    {
        public const int OK = 0;
        public const int Help = 1;
        public const int InvalidArguments = 2;
        public const int ForceRequired = 3;
        public const int ExceptionThrown = Byte.MaxValue - 1;
    }
}

Add rationale for exit status codes to comments.
Add rationale for exit status codes to comments.
