1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-08-23 21:24:20 -04:00
gitea/services/repository
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
..
archiver
files Add latest commit's SHA to content response (#20398) 2022-07-30 16:09:04 +08:00
adopt_test.go
adopt.go
avatar_test.go
avatar.go
branch.go
cache.go Slightly simplify LastCommitCache (#20444) 2022-07-25 16:39:42 +01:00
check.go
fork_test.go
fork.go
hooks.go
main_test.go
push.go
repository_test.go
repository.go
review_test.go
review.go
template.go
transfer_test.go
transfer.go