aboutsummaryrefslogtreecommitdiff
path: root/internal/testgit
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-22 14:00:14 +0000
committerGravatar Runxi Yu2026-03-22 14:00:14 +0000
commit82bc1cd67431d11690217813192ccc1510ce378b (patch)
treef56c12c3a61b9e812a8acbc78d5431f2b914cb1a /internal/testgit
parentREADME: Simplify; go-git link (diff)
signatureNo signature
internal/testgit: why not make it more annoying to use ambient authority
Diffstat (limited to 'internal/testgit')
-rw-r--r--internal/testgit/repo_properties.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/testgit/repo_properties.go b/internal/testgit/repo_properties.go
index e99281ec..b731a6e4 100644
--- a/internal/testgit/repo_properties.go
+++ b/internal/testgit/repo_properties.go
@@ -12,9 +12,9 @@ func (testRepo *TestRepo) Env() []string {
return append([]string(nil), testRepo.env...)
}
-// DirButYouShouldReallyNotUseThisOkay returns the git dir of a repo.
+// 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) DirButYouShouldReallyNotUseThisOkay() string {
+func (testRepo *TestRepo) DirButYouShouldReallyNotUseThisYouShouldReallyConsiderUsingAProperCapabilityInterfaceInsteadAndIAmKeepingThisMethodIntentionallyLongToAnnoyYou() string {
return testRepo.dir
}