gitea/services
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>
..
agit Add more linters to improve code readability ()
asymkey Move issues related files into models/issues ()
attachment Move almost all functions' parameter db.Engine to context.Context ()
auth Fix various typos ()
automerge Add more linters to improve code readability ()
comments Move issues related files into models/issues ()
context Move almost all functions' parameter db.Engine to context.Context ()
cron Make better use of i18n ()
externalaccount Refactor auth package ()
forms Implement sync push mirror on commit ()
gitdiff Improve code diff highlight, fix incorrect rendered diff result ()
issue Check if project has the same repository id with issue when assign project to issue ()
lfs Move some code into models/git ()
mailer Added email notification option to receive all own messages ()
migrations Add tests for the host checking logic, clarify the behaviors ()
mirror Implement sync push mirror on commit ()
org Move almost all functions' parameter db.Engine to context.Context ()
packages Add Docker /v2/_catalog endpoint ()
pull Ensure that all unmerged files are merged when conflict checking ()
release fix permission check for delete tag ()
repository Add latest commit's SHA to content response ()
task Add more linters to improve code readability ()
user Fix: Actor is required to get user repositories ()
webhook Add more linters to improve code readability ()
wiki Move some helper files out of models ()