diff options
Diffstat (limited to 'internal/testgit/repo_commit_graph_write.go')
| -rw-r--r-- | internal/testgit/repo_commit_graph_write.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/testgit/repo_commit_graph_write.go b/internal/testgit/repo_commit_graph_write.go new file mode 100644 index 00000000..13221f87 --- /dev/null +++ b/internal/testgit/repo_commit_graph_write.go @@ -0,0 +1,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...) +} |
