shithub: furgit

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

View raw version
package testgit

import (
	"testing"

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

// 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())
}