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.
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>
3 years ago
..
admin Refactor routers directory (#15800) 3 years ago
dev Refactor routers directory (#15800) 3 years ago
events Refactor routers directory (#15800) 3 years ago
explore Refactor routers directory (#15800) 3 years ago
org More efficiently parse shas for shaPostProcessor (#16101) 3 years ago
repo More efficiently parse shas for shaPostProcessor (#16101) 3 years ago
user More efficiently parse shas for shaPostProcessor (#16101) 3 years ago
base.go Add sso.Group, context.Auth, context.APIAuth to allow auth special routes (#16086) 3 years ago
goget.go Refactor routers directory (#15800) 3 years ago
home.go Refactor routers directory (#15800) 3 years ago
metrics.go Refactor routers directory (#15800) 3 years ago
swagger_json.go Refactor routers directory (#15800) 3 years ago
web.go Add asymmetric JWT signing (#16010) 3 years ago