0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-25 14:22:48 +01:00
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>
2022-07-30 16:09:04 +08:00
..
activitypub Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
admin Add option to purge users (#18064) 2022-07-14 08:22:09 +01:00
misc Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
notify Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
org Add spectral linter for Swagger (#20321) 2022-07-11 18:07:16 -05:00
packages Hide internal package versions (#20492) 2022-07-27 09:59:10 +08:00
repo Slightly simplify LastCommitCache (#20444) 2022-07-25 16:39:42 +01:00
settings Make mirror feature more configurable (#16957) 2021-09-07 17:49:36 +02:00
swagger Add spectral linter for Swagger (#20321) 2022-07-11 18:07:16 -05:00
user Only show Followers that current user can access (#20220) 2022-07-05 16:47:45 +01:00
utils Add latest commit's SHA to content response (#20398) 2022-07-30 16:09:04 +08:00
api.go Add write check for creating Commit status (#20332) 2022-07-12 14:51:06 +02:00
auth.go Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
auth_windows.go Let web and API routes have different auth methods group (#19168) 2022-03-28 12:46:28 +08:00