From e15054a4f93fc54806e84aa7036e60168e78e823 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 6 Mar 2026 08:05:51 +0800 Subject: format/commitgraph: Add initial commit-graph support --- internal/testgit/repo_commit_graph_write.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 internal/testgit/repo_commit_graph_write.go (limited to 'internal/testgit/repo_commit_graph_write.go') 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...) +} -- cgit v1.3.1-10-gc9f91