aboutsummaryrefslogtreecommitdiff
path: root/internal/testgit/util.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-06-06 17:45:29 +0000
committerGravatar Runxi Yu2026-06-06 17:45:29 +0000
commit2c79eaae593f5669f5f596337f5ac98492cc1127 (patch)
tree7b6dccf1689110a7d865b8a46f9d72b3ac058f6d /internal/testgit/util.go
parentinternal/testgit: hash-object and command (diff)
testgit: Add config support
Diffstat (limited to 'internal/testgit/util.go')
-rw-r--r--internal/testgit/util.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/testgit/util.go b/internal/testgit/util.go
new file mode 100644
index 00000000..361d7725
--- /dev/null
+++ b/internal/testgit/util.go
@@ -0,0 +1,5 @@
+package testgit
+
+func String(b []byte, err error) (string, error) {
+ return string(b), err
+}