0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 17:54:41 +01:00
gitea/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 Fix various typos (#20338) 2022-07-12 23:32:37 +02:00
automerge
comments
context
cron Make better use of i18n (#20096) 2022-06-26 22:19:22 +08:00
externalaccount
forms Implement sync push mirror on commit (#19411) 2022-07-08 20:45:12 +01:00
gitdiff Improve code diff highlight, fix incorrect rendered diff result (#19958) 2022-07-23 19:28:02 +08:00
issue Check if project has the same repository id with issue when assign project to issue (#20133) 2022-06-30 23:55:08 +08:00
lfs
mailer Added email notification option to receive all own messages (#20179) 2022-07-28 16:30:12 +08:00
migrations Add tests for the host checking logic, clarify the behaviors (#20328) 2022-07-13 09:07:16 +08:00
mirror Implement sync push mirror on commit (#19411) 2022-07-08 20:45:12 +01:00
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