aboutsummaryrefslogtreecommitdiff
path: root/internal/testgit/repo_properties.go
blob: 3a4891246253607eef62ab046110b5ef7930a9eb (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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...)
}