Commit Graph

6 Commits

Author SHA1 Message Date
Matt Burke 9299d2c69a dos2unix 2012-01-28 11:42:04 -05:00
Tuomas Järvensivu abd6a0f4a5 Add rationale for exit status codes to comments. 2011-08-18 13:17:25 +03:00
Tuomas Järvensivu c4a0577e4e Replace negative exit status codes with positive ones.
MinGW bash does not report negative exit status codes:
http://sourceforge.net/tracker/?func=detail&atid=102435&aid=1172090&group_id=2435

Due to above when running git-tfs in a script in MinGW there's no way of
knowing whether git-tfs operation was succesfull or failure caused by
a thrown exception.

Negative exit status codes are replaced with positive ones constraining
them to Byte.MaxValue. This is so that the behavior of the program is
consistent and predictable in all running environments (e.g. bash,
cmd.exe, powershell.exe, zsh, sh). While cmd.exe and powershell.exe
support exit status codes higher than 255, UNIX-like running environments
only support values between 0 and 255:
http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html

Signed-off-by: Tuomas Järvensivu <tuomas.jarvensivu@reaktor.fi>
2011-08-17 19:02:57 +03:00
Matt Burke f4ab1be544 Shelve now looks for a pre-existing shelveset. 2010-12-01 13:53:17 -05:00
Matt Burke 07c99979b2 Ported init (minus the low-level git command invocations). 2009-06-30 14:40:06 -04:00
Matt Burke 6ebeaa7f1d Ported some more of git-svn. 2009-06-29 18:19:33 -04:00