aboutsummaryrefslogtreecommitdiff
path: root/internal/testgit
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-05-24 10:59:52 +0000
committerGravatar Runxi Yu2026-05-24 10:59:52 +0000
commit8918ce503af78c174c4c4fc14b711e769989f000 (patch)
tree5a8e9a61173422362310c208eaa0e9c4b48e240c /internal/testgit
parentinternal/testgit: Fix documentation wrappin (diff)
signatureNo signature
internal/testgit: Add Algorithm method
Diffstat (limited to 'internal/testgit')
-rw-r--r--internal/testgit/repo.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/testgit/repo.go b/internal/testgit/repo.go
index f18f199c..fcb6ae90 100644
--- a/internal/testgit/repo.go
+++ b/internal/testgit/repo.go
@@ -14,6 +14,10 @@ type Repo struct {
env []string
}
+func (repo *Repo) Algorithm() id.Algorithm {
+ return repo.algo
+}
+
func (repo *Repo) Command(
tb testing.TB,
command string,