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
Gusted 692707f145
Add latest commit's SHA to content response (#20398)
* Add latest commit's SHA to content response

- When requesting the contents of a filepath, add the latest commit's
SHA to the requested file.
- Resolves #12840

* Add swagger

* Fix NPE

* Fix tests

* Hook into LastCommitCache

* Move AddLastCommitCache to a common nogogit and gogit file

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Prevent NPE

Co-authored-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
3 years ago
..
activitypub Add more linters to improve code readability (#19989) 3 years ago
admin Add option to purge users (#18064) 3 years ago
misc Move issues related files into models/issues (#19931) 3 years ago
notify Add more linters to improve code readability (#19989) 3 years ago
org Add spectral linter for Swagger (#20321) 3 years ago
packages Hide internal package versions (#20492) 3 years ago
repo Slightly simplify LastCommitCache (#20444) 3 years ago
settings Make mirror feature more configurable (#16957) 3 years ago
swagger Add spectral linter for Swagger (#20321) 3 years ago
user Only show Followers that current user can access (#20220) 3 years ago
utils Add latest commit's SHA to content response (#20398) 3 years ago
api.go Add write check for creating Commit status (#20332) 3 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