0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-24 11:58:17 +01:00
gitea/routers/web
zeripath 196593e2e9
More efficiently parse shas for shaPostProcessor (#16101)
* More efficiently parse shas for shaPostProcessor

The shaPostProcessor currently repeatedly calls git rev-parse --verify on both backends
which is fine if there is only one thing that matches a sha - however if there are
multiple things then this becomes wildly inefficient.

This PR provides functions for both backends which are much faster to use.

Fix #16092

* Add ShaExistCache to RenderContext

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
2021-06-21 00:39:12 +02:00
..
admin
dev
events
explore
org More efficiently parse shas for shaPostProcessor (#16101) 2021-06-21 00:39:12 +02:00
repo More efficiently parse shas for shaPostProcessor (#16101) 2021-06-21 00:39:12 +02:00
user More efficiently parse shas for shaPostProcessor (#16101) 2021-06-21 00:39:12 +02:00
base.go Add sso.Group, context.Auth, context.APIAuth to allow auth special routes (#16086) 2021-06-09 19:53:16 +02:00
goget.go
home.go
metrics.go
swagger_json.go
web.go Add asymmetric JWT signing (#16010) 2021-06-17 23:56:46 +02:00