aboutsummaryrefslogtreecommitdiff
path: root/internal/testgit/command.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-06-07 09:35:38 +0000
committerGravatar Runxi Yu2026-06-07 09:35:38 +0000
commit37f86979eefddb653e90b6af700b976dd3463417 (patch)
treeb01b30f04ace10eb198284094ece535e18ef74f4 /internal/testgit/command.go
parentREFACTOR: object/commit is done (diff)
signatureNo signature
internal/testgit: Unexport Run and Command
Diffstat (limited to 'internal/testgit/command.go')
-rw-r--r--internal/testgit/command.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/testgit/command.go b/internal/testgit/command.go
index 27fbd321..7f1835ec 100644
--- a/internal/testgit/command.go
+++ b/internal/testgit/command.go
@@ -8,7 +8,7 @@ import (
"testing"
)
-func (repo *Repo) Command(
+func (repo *Repo) command(
tb testing.TB,
command string,
args ...string,
@@ -22,7 +22,7 @@ func (repo *Repo) Command(
return cmd
}
-func (repo *Repo) Run(
+func (repo *Repo) run(
tb testing.TB,
stdin io.Reader,
command string,
@@ -30,7 +30,7 @@ func (repo *Repo) Run(
) (stdout []byte, err error) {
tb.Helper()
- cmd := repo.Command(tb, command, args...)
+ cmd := repo.command(tb, command, args...)
cmd.Stdin = stdin