gitea/routers/api/v1/utils
Gusted 692707f145
Add latest commit's SHA to content response ()
* 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 

* 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
..
git.go Add latest commit's SHA to content response () 2022-07-30 16:09:04 +08:00
hook.go Add more linters to improve code readability () 2022-06-20 12:02:49 +02:00
page.go Never use /api/v1 from Gitea UI Pages () 2022-04-07 20:59:56 +02:00