From f49c95662bda1f2c337dbe872644afa1ca5cbbec Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 20 Feb 2026 22:52:58 +0800 Subject: objectid: Rename from oid --- internal/testgit/repo_new.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/testgit/repo_new.go') diff --git a/internal/testgit/repo_new.go b/internal/testgit/repo_new.go index 51277f78..308d8156 100644 --- a/internal/testgit/repo_new.go +++ b/internal/testgit/repo_new.go @@ -4,22 +4,22 @@ import ( "os" "testing" - "codeberg.org/lindenii/furgit/oid" + "codeberg.org/lindenii/furgit/objectid" ) // NewBareRepo creates a temporary bare repository initialized with the requested algorithm. -func NewBareRepo(tb testing.TB, algo oid.Algorithm) *TestRepo { +func NewBareRepo(tb testing.TB, algo objectid.Algorithm) *TestRepo { tb.Helper() return newRepo(tb, algo, true) } // NewWorkRepo creates a temporary non-bare repository initialized with the requested algorithm. -func NewWorkRepo(tb testing.TB, algo oid.Algorithm) *TestRepo { +func NewWorkRepo(tb testing.TB, algo objectid.Algorithm) *TestRepo { tb.Helper() return newRepo(tb, algo, false) } -func newRepo(tb testing.TB, algo oid.Algorithm, bare bool) *TestRepo { +func newRepo(tb testing.TB, algo objectid.Algorithm, bare bool) *TestRepo { tb.Helper() if algo.Size() == 0 { tb.Fatalf("invalid algorithm: %v", algo) -- cgit v1.3.1-10-gc9f91