blob: 13221f87c32208edb4219f1e642926b5df418017 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
package testgit
import "testing"
// CommitGraphWrite runs "git commit-graph write" with args in the repository.
func (testRepo *TestRepo) CommitGraphWrite(tb testing.TB, args ...string) {
tb.Helper()
cmdArgs := make([]string, 0, len(args)+3)
cmdArgs = append(cmdArgs, "commit-graph", "write")
cmdArgs = append(cmdArgs, args...)
_ = testRepo.Run(tb, cmdArgs...)
}
|