git.util

Undocumented in source.

Members

Aliases

toSlice
alias toSlice = to!(const(char)[])
Undocumented in source.

Functions

gitStr
const(char)* gitStr(const(char)[] s)

Converts the passed char slice to a C string, returning the null pointer for empty strings.

require
void require(bool state, string file, size_t line)

Call this function when an error code is returned from a git function. It will retrieve the last error and throw a GitException.

requireBool
bool requireBool(int result, string file, size_t line)

Require the result to be either 1 or 0. If it is, return the boolean value, otherwise throw a GitException.

toGitTime
git_time toGitTime(SysTime time)
Undocumented in source. Be warned that the author may not have intended to support it.
toPosixPath
string toPosixPath(string input)

Return a posix-native path, replacing backslashes with forward slashes.

toSysTime
SysTime toSysTime(git_time gtime)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixin templates

RefCountedGitObject
mixintemplate RefCountedGitObject(T, alias free_function, bool define_chandle = true)
Undocumented in source.

Meta