Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Git ¶ added in v0.9.0
Git runs one git command in a fixture, with the addressing this process inherited removed.
A hook exports GIT_DIR, GIT_INDEX_FILE and friends as absolute paths, and everything spawned below inherits them — so a fixture that kept them would quietly operate on the real checkout and succeed. They are REMOVED rather than blanked, because git rejects an empty GIT_DIR outright.
func GitRepository ¶ added in v0.9.0
GitRepository builds a throwaway repository with one committed Go file, tagged `base`, and returns its path. It is removed with the test's temporary directory.
func GitRepositoryWithAChange ¶ added in v0.9.0
GitRepositoryWithAChange is GitRepository plus one committed Go change after the tag, which is the shape most of these questions are asked of.
Types ¶
This section is empty.