mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-08 22:48:02 +02:00
Refactor cat-file batch operations and support --batch-command approach (#35775)
Replace #34651 and address more problems including fix framework bugs and changing to QueryInfo and QueryContent calls. --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
1 parent
ee9d8893a7
commit
e226720cff
34 files changed
+832
-812
No files matched your search
@@ -6,9 +6,9 @@ package gitrepo
|
||||
import (
|
||||
"context"
|
||||
|
||||
"code.gitea.io/gitea/modules/git/catfile"
|
||||
"code.gitea.io/gitea/modules/git"
|
||||
)
|
||||
|
||||
func NewBatch(ctx context.Context, repo Repository) (catfile.Batch, error) {
|
||||
return catfile.NewBatch(ctx, repoPath(repo))
|
||||
func NewBatch(ctx context.Context, repo Repository) (git.CatFileBatchCloser, error) {
|
||||
return git.NewBatch(ctx, repoPath(repo))
|
||||
}
|
||||
Reference in new issue
Block a user