aboutsummaryrefslogtreecommitdiff
path: root/internal/testgit/repo_cat_file.go
blob: 1325cf6f7a51b5de9feafd51c0fada0e5cb6fbd5 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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())
}