shithub: furgit

ref: 9e44418ce9d88f4159067b1ce2c808cb93e29c38
dir: /internal/testgit/repo_properties.go/

View raw version
package testgit

import "codeberg.org/lindenii/furgit/objectid"

// Dir returns the repository directory path.
func (testRepo *TestRepo) Dir() string {
	return testRepo.dir
}

// Algorithm returns the object ID algorithm configured for this repository.
func (testRepo *TestRepo) Algorithm() objectid.Algorithm {
	return testRepo.algo
}

// Env returns a copy of the environment used for git subprocesses.
func (testRepo *TestRepo) Env() []string {
	return append([]string(nil), testRepo.env...)
}