forgejo/services/pull
zeripath a9ba7379fe
Improve checkIfPRContentChanged () ()
Backport 

The code for checking if a commit has caused a change in a PR is
extremely inefficient and affects the head repository instead of using a
temporary repository.

This PR therefore makes several significant improvements:

* A temporary repo like that used in merging.
* The diff code is then significant improved to use a three-way diff
instead of comparing diffs (possibly binary) line-by-line - in memory...

Ref 

Signed-off-by: Andrew Thornton <art27@cantab.net>
2023-01-28 17:56:16 +00:00
..
check.go Use complete SHA to create and query commit status () () 2022-12-28 11:03:21 +01:00
check_test.go Refactor AssertExistsAndLoadBean to use generics () 2022-08-16 10:22:25 +08:00
commit_status.go Move issues related files into models/issues () 2022-06-13 17:37:59 +08:00
edits.go Move issues related files into models/issues () 2022-06-13 17:37:59 +08:00
lfs.go Move issues related files into models/issues () 2022-06-13 17:37:59 +08:00
main_test.go Use a struct as test options () 2022-04-14 21:58:21 +08:00
merge.go When updating by rebase we need to set the environment for head repo () () 2023-01-19 17:31:20 -05:00
patch.go Add setting to disable the git apply step in test patch () () 2022-12-22 11:59:10 +01:00
patch_unmerged.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) () 2022-10-24 20:29:17 +01:00
pull.go Improve checkIfPRContentChanged () () 2023-01-28 17:56:16 +00:00
pull_test.go Refactor AssertExistsAndLoadBean to use generics () 2022-08-16 10:22:25 +08:00
review.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) () 2022-10-24 20:29:17 +01:00
temp_repo.go Use complete SHA to create and query commit status () () 2022-12-28 11:03:21 +01:00
update.go Fix 500 error viewing pull request when fork has pull requests disabled () () 2023-01-18 22:50:51 +01:00