You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers
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>
4 years ago
..
api/v1 Fix some API bugs (#16184) 4 years ago
common Refactor routers directory (#15800) 4 years ago
install Add asymmetric JWT signing (#16010) 4 years ago
private Make modules/context.Context a context.Context (#16031) 4 years ago
utils Clarify the suffices and prefixes of setting.AppSubURL and setting.AppURL (#12999) 4 years ago
web More efficiently parse shas for shaPostProcessor (#16101) 4 years ago
init.go Add sso.Group, context.Auth, context.APIAuth to allow auth special routes (#16086) 4 years ago