Optional
Readonly
envAn optional collection of key-value pairs which will be set as environment variables before executing the Git process.
Optional
Readonly
expectedThe Git errors which are expected by the caller. Unexpected errors will be logged and an error thrown.
Optional
Readonly
maxThe size the output buffer to allocate to the spawned process. Set this if you are anticipating a large amount of output.
If not specified, this will be 10MB (10485760 bytes) which should be enough for most Git operations.
Optional
Readonly
nameThe name for the command based on its caller's context. This could be used only for performance measurements and debugging. It has no runtime behavior effects.
Optional
Readonly
processAn optional callback which will be invoked with the child process instance after spawning the Git process.
Note that if the stdin
parameter was specified the stdin
stream will be closed by the time this callback fires.
Defining this property could make the exec
function invocation non-client compatible.
Optional
Readonly
stdinAn optional string which will be written to the child process stdin stream immediately after spawning the process.
Optional
Readonly
stdinThe encoding to use when writing to stdin
, if the stdin
parameter is a string.
Optional
Readonly
successThe exit codes which indicate success to the caller. Unexpected exit codes will be logged and an
error thrown. Defaults to 0
if undefined
.
A set of configuration options that can be passed when executing a low-level Git command.