diff options
| author | 2026-06-11 13:03:56 +0000 | |
|---|---|---|
| committer | 2026-06-11 13:03:56 +0000 | |
| commit | 0fad4fe5e59a7d908ce62b80b7a14a7c74149ec5 (patch) | |
| tree | b4f7cf39d68cd0a7ab4ff45d85394c075762ec28 /internal/testgit/verifypack.go | |
| parent | internal/format/packfile/delta: Add header parsing and serialization (diff) | |
internal/testgit: packobjects, verifypack
Diffstat (limited to 'internal/testgit/verifypack.go')
| -rw-r--r-- | internal/testgit/verifypack.go | 13 |
1 files changed, 13 insertions, 0 deletions
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) +} |
