gitea/modules/git
Denys Konovalov 9a071a596f
Add API endpoint to request contents of multiple files simultaniously (#34139)
Adds an API POST endpoint under `/repos/{owner}/{repo}/file-contents`
which receives a list of paths and returns a list of the contents of
these files.

This API endpoint will be helpful for applications like headless CMS
(reference: https://github.com/sveltia/sveltia-cms/issues/198) which
need to retrieve a large number of files by reducing the amount of
needed API calls.

Close #33495

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-04-22 01:20:11 +08:00
..
attribute Refactor Git Attribute & performance optimization (#34154) 2025-04-11 21:41:29 +08:00
foreachref
internal
languagestats Refactor Git Attribute & performance optimization (#34154) 2025-04-11 21:41:29 +08:00
pipeline
tests/repos Refactor Git Attribute & performance optimization (#34154) 2025-04-11 21:41:29 +08:00
url Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
batch_reader.go
batch.go Decouple Batch from git.Repository to simplify usage without requiring the creation of a Repository struct. (#34001) 2025-03-27 17:35:48 +00:00
blame_sha256_test.go Uniform all temporary directories and allow customizing temp path (#32352) 2025-04-08 16:15:28 +00:00
blame_test.go Uniform all temporary directories and allow customizing temp path (#32352) 2025-04-08 16:15:28 +00:00
blame.go Uniform all temporary directories and allow customizing temp path (#32352) 2025-04-08 16:15:28 +00:00
blob_gogit.go
blob_nogogit.go
blob_test.go
blob.go
command_race_test.go
command_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
command.go Refactor Git Attribute & performance optimization (#34154) 2025-04-11 21:41:29 +08:00
commit_convert_gogit.go
commit_info_gogit.go
commit_info_nogogit.go
commit_info_test.go
commit_info.go
commit_reader.go
commit_sha256_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
commit_submodule_file_test.go
commit_submodule_file.go
commit_submodule.go
commit_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
commit.go
config_submodule_test.go
config_submodule.go
config_test.go
config.go
diff_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
diff.go
error.go Keep file tree view icons consistent with icon theme (#33921) 2025-04-06 19:35:08 +00:00
fsck.go
git_test.go Uniform all temporary directories and allow customizing temp path (#32352) 2025-04-08 16:15:28 +00:00
git.go Refactor Git Attribute & performance optimization (#34154) 2025-04-11 21:41:29 +08:00
grep_test.go
grep.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
hook.go Move duplicated functions (#33977) 2025-03-25 14:40:31 +00:00
last_commit_cache_gogit.go
last_commit_cache_nogogit.go
last_commit_cache.go
log_name_status.go enable staticcheck QFxxxx rules (#34064) 2025-03-29 17:32:28 -04:00
notes_gogit.go
notes_nogogit.go
notes_test.go
notes.go
object_format.go
object_id_gogit.go
object_id_test.go
object_id.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
parse_gogit_test.go
parse_gogit.go
parse_nogogit_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
parse_nogogit.go
parse.go
README.md
ref_test.go
ref.go
remote.go
repo_archive_test.go
repo_archive.go
repo_base_gogit.go Move duplicated functions (#33977) 2025-03-25 14:40:31 +00:00
repo_base_nogogit.go Decouple Batch from git.Repository to simplify usage without requiring the creation of a Repository struct. (#34001) 2025-03-27 17:35:48 +00:00
repo_blame.go
repo_blob_gogit.go
repo_blob_nogogit.go
repo_blob_test.go
repo_blob.go
repo_branch_gogit.go
repo_branch_nogogit.go
repo_branch_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
repo_branch.go Refactor Branch struct in package modules/git (#33980) 2025-04-02 17:31:32 +00:00
repo_commit_gogit.go
repo_commit_nogogit.go Avoid creating unnecessary temporary cat file sub process (#33942) 2025-04-04 16:19:19 -07:00
repo_commit_test.go
repo_commit.go
repo_commitgraph_gogit.go Use filepath.Join instead of path.Join for file system file operations (#33978) 2025-03-24 14:50:28 -07:00
repo_commitgraph.go
repo_compare_test.go
repo_compare.go
repo_gpg.go
repo_hook.go
repo_index.go Uniform all temporary directories and allow customizing temp path (#32352) 2025-04-08 16:15:28 +00:00
repo_object.go Add API endpoint to request contents of multiple files simultaniously (#34139) 2025-04-22 01:20:11 +08:00
repo_ref_gogit.go
repo_ref_nogogit.go
repo_ref_test.go
repo_ref.go enable staticcheck QFxxxx rules (#34064) 2025-03-29 17:32:28 -04:00
repo_stats_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
repo_stats.go
repo_tag_gogit.go
repo_tag_nogogit.go Avoid creating unnecessary temporary cat file sub process (#33942) 2025-04-04 16:19:19 -07:00
repo_tag_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
repo_tag.go Move git references checking to gitrepo packages to reduce expose of repository path (#33891) 2025-03-15 19:48:59 -07:00
repo_test.go
repo_tree_gogit.go
repo_tree_nogogit.go Avoid creating unnecessary temporary cat file sub process (#33942) 2025-04-04 16:19:19 -07:00
repo_tree.go
repo.go Uniform all temporary directories and allow customizing temp path (#32352) 2025-04-08 16:15:28 +00:00
signature_gogit.go
signature_nogogit.go
signature_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
signature.go
submodule_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
submodule.go
tag_test.go
tag.go Avoid creating unnecessary temporary cat file sub process (#33942) 2025-04-04 16:19:19 -07:00
tree_blob_gogit.go
tree_blob_nogogit.go
tree_blob.go
tree_entry_gogit.go
tree_entry_mode.go Keep file tree view icons consistent with icon theme (#33921) 2025-04-06 19:35:08 +00:00
tree_entry_nogogit.go
tree_entry_test.go
tree_entry.go Keep file tree view icons consistent with icon theme (#33921) 2025-04-06 19:35:08 +00:00
tree_gogit.go
tree_nogogit.go
tree_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
tree.go
utils_test.go
utils.go Move duplicated functions (#33977) 2025-03-25 14:40:31 +00:00

Git Module

This module is merged from https://github.com/go-gitea/git which is a Go module to access Git through shell commands. Now it's a part of gitea's main repository for easier pull request.