1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-02 15:09:33 -05:00
gitea/routers/api/v1/repo
Lunny Xiao f4ccbd38dc
Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache (#32987)
The latest commit cache is currently used only for listing tree files.
However, a cold start may take longer than directly invoking the Git
command. This PR addresses the issue of slow response times when
accessing raw files, improving performance in such scenarios.

```log
gitea.log:105521:2024/12/23 08:22:18 ...eb/routing/logger.go:68:func1() [W] router: slow      GET /xxxx/xxxxxx/raw/commit/xxxxxxxxxxxxxxxxxxxxxxxxxxx/.editorconfig for 172.18.0.5:53252, elapsed 3526.8ms @ repo/download.go:117(repo.SingleDownload)
```
2024-12-30 03:30:01 +00:00
..
action.go Set owner id to zero when GetRegistrationToken for repo (#31725) 2024-07-29 18:46:45 +00:00
avatar.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
blob.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
branch.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
collaborators.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
commits.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
compare.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
download.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
file.go Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache (#32987) 2024-12-30 03:30:01 +00:00
fork.go Refactor find forks and fix possible bugs that weak permissions check (#32528) 2024-11-18 03:06:25 +00:00
git_hook.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
git_ref.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
hook_test.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
hook.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
issue_attachment.go Include file extension checks in attachment API (#32151) 2024-11-06 21:34:32 +00:00
issue_comment_attachment.go Include file extension checks in attachment API (#32151) 2024-11-06 21:34:32 +00:00
issue_comment.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
issue_dependency.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
issue_label.go Support org labels when adding labels by label names (#32988) 2024-12-26 19:14:49 +00:00
issue_pin.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
issue_reaction.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
issue_stopwatch.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
issue_subscription.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
issue_tracked_time.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
issue.go Use CloseIssue and ReopenIssue instead of ChangeStatus (#32467) 2024-12-25 07:38:30 +00:00
key.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
label.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
language.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
license.go Support repo license (#24872) 2024-10-01 15:25:08 -04:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
migrate.go Move some errors to their own sub packages (#32880) 2024-12-20 18:05:29 +00:00
milestone.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
mirror.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
notes.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
patch.go Move some errors to their own sub packages (#32880) 2024-12-20 18:05:29 +00:00
pull_review.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
pull.go Use CloseIssue and ReopenIssue instead of ChangeStatus (#32467) 2024-12-25 07:38:30 +00:00
release_attachment.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
release_tags.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
release.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
repo_test.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
repo.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
star.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
status.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
subscriber.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
tag.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
teams.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
topic.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
transfer.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
tree.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
wiki.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00