gitea/modules
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
..
analyze
auth Add asymmetric JWT signing (#16010) 2021-06-17 23:56:46 +02:00
avatar Add Image Diff for SVG files (#14867) 2021-06-05 15:32:19 +03:00
base Fixed assert statements. (#16089) 2021-06-07 07:27:09 +02:00
cache
charset
context [API] ListReleases add filter for draft and pre-releases (#16175) 2021-06-17 10:58:10 +02:00
convert Fix some API bugs (#16184) 2021-06-18 01:24:55 +02:00
cron
csv
doctor Add err to log (#15813) 2021-05-10 20:48:23 +01:00
emoji Run processors on whole of text (#16155) 2021-06-17 11:35:05 +01:00
eventsource Hold the event source when there are no listeners (#15725) 2021-05-15 23:46:13 +02:00
generate Add asymmetric JWT signing (#16010) 2021-06-17 23:56:46 +02:00
git More efficiently parse shas for shaPostProcessor (#16101) 2021-06-21 00:39:12 +02:00
gitgraph
graceful Set self-adjusting deadline for connection writing (#16068) 2021-06-11 00:25:25 +03:00
hcaptcha
highlight Speed up git diff highlight generation (#16180) 2021-06-17 10:55:16 -04:00
httpcache
httplib
indexer Use git log name-status in get last commit (#16059) 2021-06-21 01:00:46 +03:00
lfs Add push to remote mirror repository (#15157) 2021-06-14 19:20:43 +02:00
log Fixed assert statements. (#16089) 2021-06-07 07:27:09 +02:00
markup More efficiently parse shas for shaPostProcessor (#16101) 2021-06-21 00:39:12 +02:00
matchlist
metrics
migrations Add Status Updates whilst Gitea migrations are occurring (#15076) 2021-06-16 18:02:24 -04:00
nosql
notification Don't manipulate input params in email notification (#16011) 2021-05-30 10:38:38 +01:00
options
password Fixed assert statements. (#16089) 2021-06-07 07:27:09 +02:00
pprof
private add a new internal hook to save ssh log (#15787) 2021-05-21 17:37:16 -04:00
process
public Improve assets handler middleware (#15961) 2021-05-30 18:25:11 +08:00
queue Fixed assert statements. (#16089) 2021-06-07 07:27:09 +02:00
recaptcha
references Respect default merge message syntax when parsing item references (#15772) 2021-05-09 19:25:23 +01:00
repofiles
repository Add push to remote mirror repository (#15157) 2021-06-14 19:20:43 +02:00
secret Use single shared random string generation function (#15741) 2021-05-10 07:45:17 +01:00
session
setting Reintroduce squash merge default comment as a config setting (#16134) 2021-06-19 00:08:22 +02:00
ssh Set self-adjusting deadline for connection writing (#16068) 2021-06-11 00:25:25 +03:00
storage
structs Fix some API bugs (#16184) 2021-06-18 01:24:55 +02:00
svg
sync
task Add Status Updates whilst Gitea migrations are occurring (#15076) 2021-06-16 18:02:24 -04:00
templates Add push to remote mirror repository (#15157) 2021-06-14 19:20:43 +02:00
test
timeutil
translation
typesniffer Add Image Diff for SVG files (#14867) 2021-06-05 15:32:19 +03:00
upload
uri
user
util Add push to remote mirror repository (#15157) 2021-06-14 19:20:43 +02:00
validation
web Fix setting of SameSite on cookies (#15989) 2021-05-26 21:01:07 -04:00