Converts the passed char slice to a C string, returning the null pointer for empty strings.
Call this function when an error code is returned from a git function. It will retrieve the last error and throw a GitException.
Require the result to be either 1 or 0. If it is, return the boolean value, otherwise throw a GitException.
Return a posix-native path, replacing backslashes with forward slashes.