From 5b3b684f02a7433af213809184ca61b379e110f4 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Mon, 27 Nov 2023 13:01:08 +0100 Subject: pkg/vcs: delete ListRecentCommits() It's not needed anymore. --- pkg/vcs/git.go | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'pkg/vcs/git.go') diff --git a/pkg/vcs/git.go b/pkg/vcs/git.go index b3e9a7ace..71fcac97a 100644 --- a/pkg/vcs/git.go +++ b/pkg/vcs/git.go @@ -366,17 +366,6 @@ func (git *git) GetCommitsByTitles(titles []string) ([]*Commit, []string, error) return results, missing, nil } -func (git *git) ListRecentCommits(baseCommit string) ([]string, error) { - // On upstream kernel this produces ~11MB of output. - // Somewhat inefficient to collect whole output in a slice - // and then convert to string, but should be bearable. - output, err := git.git("log", "--pretty=format:%s", "-n", "200000", baseCommit) - if err != nil { - return nil, err - } - return strings.Split(string(output), "\n"), nil -} - func (git *git) ListCommitHashes(baseCommit string) ([]string, error) { output, err := git.git("log", "--pretty=format:%h", baseCommit) if err != nil { -- cgit mrf-deployment