gitea/routers
zeripath 196593e2e9
More efficiently parse shas for shaPostProcessor ()
* 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 

* Add ShaExistCache to RenderContext

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
..
api/v1 Fix some API bugs ()
common Refactor routers directory ()
install Add asymmetric JWT signing ()
private Make modules/context.Context a context.Context ()
utils Clarify the suffices and prefixes of setting.AppSubURL and setting.AppURL ()
web More efficiently parse shas for shaPostProcessor ()
init.go Add sso.Group, context.Auth, context.APIAuth to allow auth special routes ()