gitea/modules/repository
delvh 0ebb45cfe7
Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()
Found using
`find . -type f -name '*.go' -print -exec vim {} -c
':%s/fmt\.Errorf(\(.*\)%v\(.*\)err/fmt.Errorf(\1%w\2err/g' -c ':wq' \;`

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
..
collaborator.go Move some files into models' sub packages ()
collaborator_test.go Move some files into models' sub packages ()
commits.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()
commits_test.go Add system setting table with cache and also add cache supports for user setting ()
create.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()
create_test.go Move some files into models' sub packages ()
delete.go Move some repository related code into sub package ()
env.go Move some helper files out of models ()
fork.go Move some repository related code into sub package ()
generate.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()
generate_test.go Move some repository related code into sub package ()
hooks.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()
init.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()
main_test.go Use a struct as test options ()
push.go Refactor git command arguments and make all arguments to be safe to be used ()
repo.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()
temp.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()