ref: ab174c473618dd3743881cf44e02c2db4d1ecd5f
dir: /internal/testgit/repo_cat_file.go/
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())
}