]> source.dussan.org Git - gitea.git/commit
HasPreviousCommit causes recursive load of commits unnecessarily (#14598) (#14649)
authorzeripath <art27@cantab.net>
Sun, 14 Feb 2021 22:44:26 +0000 (22:44 +0000)
committerGitHub <noreply@github.com>
Sun, 14 Feb 2021 22:44:26 +0000 (00:44 +0200)
commitd3200db041a8b26169a4ec4b793fcbd1044370c1
tree0196ef95c535159f411e47725eb5ff38a022c1b9
parentf305cffcaf61ecfba7d5e6c28492ca640da1c98d
HasPreviousCommit causes recursive load of commits unnecessarily (#14598) (#14649)

This PR improves HasPreviousCommit to prevent the automatic and recursive loading
of previous commits using git merge-base --is-ancestor and git rev-list

Fix #13684

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