]> source.dussan.org Git - gitea.git/commit
Simplify split diff view generation and remove JS dependency (#16775)
authorzeripath <art27@cantab.net>
Sun, 29 Aug 2021 14:28:04 +0000 (15:28 +0100)
committerGitHub <noreply@github.com>
Sun, 29 Aug 2021 14:28:04 +0000 (15:28 +0100)
commitf5b0e2c9d2336367dfcf121be6ff5154017192cf
tree85b820b9aed4583ad05c232ed1ddb7abb93d50c2
parentd24eb6e6ced43fbf198617c36686655570bb92bc
Simplify split diff view generation and remove JS dependency (#16775)

Gitea has relied on some slow JS code to match up added and deleted lines on the
diff pages. This can cause a considerable slow down on large diff pages.

This PR makes a small change meaning that the matching up can occur much more simply.

Partial fix #1351

Signed-off-by: Andrew Thornton <art27@cantab.net>
modules/repofiles/diff_test.go
services/gitdiff/gitdiff.go
templates/repo/diff/box.tmpl
templates/repo/diff/section_split.tmpl