diff options
Diffstat (limited to 'internal/testgit/repo_properties.go')
| -rw-r--r-- | internal/testgit/repo_properties.go | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/internal/testgit/repo_properties.go b/internal/testgit/repo_properties.go deleted file mode 100644 index d46e9030..00000000 --- a/internal/testgit/repo_properties.go +++ /dev/null @@ -1,20 +0,0 @@ -package testgit - -import objectid "codeberg.org/lindenii/furgit/object/id" - -// 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...) -} - -// DirButYouShouldReallyNotUseThisYouShouldReallyConsiderUsingAProperCapabilityInterfaceInsteadAndIAmKeepingThisMethodIntentionallyLongToAnnoyYou returns the git dir of a repo. -// Consider using a properly capability interface such as -// os.Root instead; all uses of ambient path authority must be justified. -func (testRepo *TestRepo) DirButYouShouldReallyNotUseThisYouShouldReallyConsiderUsingAProperCapabilityInterfaceInsteadAndIAmKeepingThisMethodIntentionallyLongToAnnoyYou() string { - return testRepo.dir -} |
