Move catfile batch to a sub package of git module (#36232)

This commit is contained in:
Lunny Xiao
2025-12-29 10:19:42 -08:00
committed by GitHub
parent d0cb198c89
commit 0ad94dfc70
17 changed files with 500 additions and 412 deletions

View File

@@ -6,9 +6,9 @@ package gitrepo
import (
"context"
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/git/catfile"
)
func NewBatch(ctx context.Context, repo Repository) (*git.Batch, error) {
return git.NewBatch(ctx, repoPath(repo))
func NewBatch(ctx context.Context, repo Repository) (catfile.Batch, error) {
return catfile.NewBatch(ctx, repoPath(repo))
}