You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers/api/v1
Gennady Kovshenin fd2d5f06b0
Add `stat` to `ToCommit` function for speed (#21337)
Calls to ToCommit are very slow due to fetching diffs, analyzing files.
This patch lets us supply `stat` as false to speed fetching a commit
when we don't need the diff.

/v1/repo/commits has a default `stat` set as true now. Set to false to
experience fetching thousands of commits per second instead of 2-5 per
second.
2 years ago
..
activitypub Go 1.19 format (#20758) 2 years ago
admin Move some files into models' sub packages (#20262) 2 years ago
misc Share HTML template renderers and create a watcher framework (#20218) 2 years ago
notify Move some files into models' sub packages (#20262) 2 years ago
org [API] teamSearch show teams with no members if user is admin (#21204) 2 years ago
packages Add support for Vagrant packages (#20930) 2 years ago
repo Add `stat` to `ToCommit` function for speed (#21337) 2 years ago
settings Make mirror feature more configurable (#16957) 3 years ago
swagger Add API endpoint to get changed files of a PR (#21177) 2 years ago
user Go 1.19 format (#20758) 2 years ago
utils Webhook for Wiki changes (#20219) 2 years ago
api.go Add API endpoint to get changed files of a PR (#21177) 2 years ago
auth.go Remove legacy `+build:` constraint (#19582) 3 years ago
auth_windows.go Let web and API routes have different auth methods group (#19168) 3 years ago