From 0fad4fe5e59a7d908ce62b80b7a14a7c74149ec5 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 11 Jun 2026 13:03:56 +0000 Subject: internal/testgit: packobjects, verifypack --- internal/testgit/verifypack.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 internal/testgit/verifypack.go (limited to 'internal/testgit/verifypack.go') diff --git a/internal/testgit/verifypack.go b/internal/testgit/verifypack.go new file mode 100644 index 00000000..ec59572a --- /dev/null +++ b/internal/testgit/verifypack.go @@ -0,0 +1,13 @@ +package testgit + +import ( + "testing" +) + +// VerifyPack runs git verify-pack -v on one pack index path +// and returns its raw verbose output. +func (repo *Repo) VerifyPack(tb testing.TB, idxPath string) ([]byte, error) { + tb.Helper() + + return repo.run(tb, nil, "git", "verify-pack", "-v", "--end-of-options", idxPath) +} -- cgit v1.3.1-10-gc9f91