]> source.dussan.org Git - gitea.git/commit
Fix paging of file commit logs (#14831)
authorzeripath <art27@cantab.net>
Thu, 4 Mar 2021 00:48:19 +0000 (00:48 +0000)
committerGitHub <noreply@github.com>
Thu, 4 Mar 2021 00:48:19 +0000 (02:48 +0200)
commit59d1cc49f1d7c63d25e2a139befc8c02b830ba09
tree25719d01e5f1c24eac8febc034d4a08806054913
parent0bdeb2b3029dc46c3e409dc043d07bf36d581be5
Fix paging of file commit logs (#14831)

Unfortunately `git log revision ... --skip=x -- path` skips the number of commits
not the number of commits relating to the path.

This PR changes the function to have a reader that reads and skips the
necessary number of commits by hand instead.

Fix #8716

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
modules/git/repo_commit.go