shithub: furgit

ref: df1f2fb3daa1acd25c88510f259d5535fb482126
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())
}