Documentation
¶
Overview ¶
Package testgit runs test Git commands without the caller's GIT_* variables. Test-only: never import it from production code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Command ¶
Command builds a Git command rooted at dir. Hooks export GIT_DIR, GIT_INDEX_FILE and friends; cmd.Dir alone does not isolate a test repository. Keep non-Git environment variables and disable system Git configuration. Tests that commit must provide their own identity (local config or -c flags).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.