diff options
| author | 2026-02-20 22:52:58 +0800 | |
|---|---|---|
| committer | 2026-02-20 22:52:58 +0800 | |
| commit | f49c95662bda1f2c337dbe872644afa1ca5cbbec (patch) | |
| tree | 502b399c86f0093b50ad5fc80b73f75f4c614733 /internal/testgit/repo_commit_tree.go | |
| parent | config: Import from the previous version and fix test harnesses (diff) | |
| signature | No signature | |
objectid: Rename from oid
Diffstat (limited to 'internal/testgit/repo_commit_tree.go')
| -rw-r--r-- | internal/testgit/repo_commit_tree.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/testgit/repo_commit_tree.go b/internal/testgit/repo_commit_tree.go index b5f2f587..1b33b5c0 100644 --- a/internal/testgit/repo_commit_tree.go +++ b/internal/testgit/repo_commit_tree.go @@ -3,11 +3,11 @@ package testgit import ( "testing" - "codeberg.org/lindenii/furgit/oid" + "codeberg.org/lindenii/furgit/objectid" ) // CommitTree creates a commit from a tree and message, optionally with parents. -func (repo *TestRepo) CommitTree(tb testing.TB, tree oid.ObjectID, message string, parents ...oid.ObjectID) oid.ObjectID { +func (repo *TestRepo) CommitTree(tb testing.TB, tree objectid.ObjectID, message string, parents ...objectid.ObjectID) objectid.ObjectID { tb.Helper() args := []string{"commit-tree", tree.String()} for _, p := range parents { @@ -15,7 +15,7 @@ func (repo *TestRepo) CommitTree(tb testing.TB, tree oid.ObjectID, message strin } args = append(args, "-m", message) hex := repo.Run(tb, args...) - id, err := oid.ParseHex(repo.algo, hex) + id, err := objectid.ParseHex(repo.algo, hex) if err != nil { tb.Fatalf("parse commit-tree output %q: %v", hex, err) } |
