/
GitTfsExitCodes.cs
29 lines (28 loc) · 1.01 KB
/
GitTfsExitCodes.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;
}
}