Move commit related functions to gitrepo package (#35600)

This commit is contained in:
Lunny Xiao authored and GitHub committed 2025-12-05 00:20:23 +00:00
1 parent cb5082f8fe
commit 64960a18f9
27 files changed
+467 -446

No files matched your search

+1 -1
View File
@@ -222,7 +222,7 @@ func FileHistory(ctx *context.Context) {
return
}
commitsCount, err := ctx.Repo.GitRepo.FileCommitsCount(ctx.Repo.RefFullName.ShortName(), ctx.Repo.TreePath)
commitsCount, err := gitrepo.FileCommitsCount(ctx, ctx.Repo.Repository, ctx.Repo.RefFullName.ShortName(), ctx.Repo.TreePath)
if err != nil {
ctx.ServerError("FileCommitsCount", err)
return