shithub: furgit

ref: 3ce59c3248dec0eb0f918c42f37f53bc2ac20425
dir: /internal/testgit/repo_cat_file.go/

View raw version
package testgit

import (
	"testing"

	objectid "codeberg.org/lindenii/furgit/object/id"
)

// CatFile returns raw output from git cat-file.
func (testRepo *TestRepo) CatFile(tb testing.TB, mode string, id objectid.ObjectID) []byte {
	tb.Helper()

	return testRepo.RunBytes(tb, "cat-file", mode, id.String())
}