diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-11-27 13:01:08 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2023-12-20 15:43:38 +0000 |
| commit | 5b3b684f02a7433af213809184ca61b379e110f4 (patch) | |
| tree | 4f6d6452c8ddcf73c8e199ee5aa2914fd7801729 /pkg/vcs/git.go | |
| parent | 66b54764d3273df352f5807049ef8afa1674d402 (diff) | |
pkg/vcs: delete ListRecentCommits()
It's not needed anymore.
Diffstat (limited to 'pkg/vcs/git.go')
| -rw-r--r-- | pkg/vcs/git.go | 11 |
1 files changed, 0 insertions, 11 deletions
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 { |
