1
0
Fork 0
forgejo/services
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
..
agit
asymkey
attachment
auth
automerge
comments
context
cron
externalaccount
forms
gitdiff Improve code diff highlight, fix incorrect rendered diff result (#19958) 2022-07-23 19:28:02 +08:00
issue
lfs
mailer Added email notification option to receive all own messages (#20179) 2022-07-28 16:30:12 +08:00
migrations
mirror
org
packages Add Docker /v2/_catalog endpoint (#20469) 2022-07-28 11:59:39 +08:00
pull Ensure that all unmerged files are merged when conflict checking (#20528) 2022-07-29 01:19:55 +02:00
release
repository Add latest commit's SHA to content response (#20398) 2022-07-30 16:09:04 +08:00
task
user Fix: Actor is required to get user repositories (#20443) 2022-07-21 23:31:22 +02:00
webhook
wiki