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.
gitea/services/gitdiff
delvh 675c14aba6
Ignore error when retrieving changed PR review files (#21487) (#21524)
When a PR reviewer reviewed a file on a commit that was later gc'ed,
they would always get a `500` response from then on when loading the PR.
This PR simply ignores that error and instead marks all files as
unchanged.
This approach was chosen as the only feasible option without diving into
**a lot** of error handling.

Fixes #21392
Backport of #21487

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 years ago
..
testdata/academic-module rm .sample hooks which aren't used (#19101) 3 years ago
csv.go format with gofumpt (#18184) 3 years ago
csv_test.go format with gofumpt (#18184) 3 years ago
gitdiff.go Ignore error when retrieving changed PR review files (#21487) (#21524) 2 years ago
gitdiff_test.go Move issues related files into models/issues (#19931) 3 years ago
main_test.go Move tests as seperate sub packages to reduce duplicated file names (#19951) 3 years ago