gitea/services/repository
Dmitry Sharshakov 5e02e3b7ee
Add support for forking single branch ()
Fixes 

Add UI for choosing branch to fork

Change default branch on single-branch forks


![image](https://github.com/go-gitea/gitea/assets/19504461/28505f69-a9a2-43a8-8b19-a0cdac3ddc5a)

---------

Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
..
archiver make writing main test easier ()
files make writing main test easier ()
adopt.go Another round of `db.DefaultContext` refactor ()
adopt_test.go Use more specific test methods ()
avatar.go Improve avatar uploading / resizing / compressing, remove Fomantic card module ()
avatar_test.go Use context parameter in services/repository ()
branch.go Updates to the API for archived repos ()
cache.go Use the type RefName for all the needed places and fix pull mirror sync bugs ()
check.go move repository deletion to service layer ()
collaboration.go Next round of `db.DefaultContext` refactor ()
collaboration_test.go Next round of `db.DefaultContext` refactor ()
commit.go Show branches and tags that contain a commit ()
create.go move repository deletion to service layer ()
create_test.go More refactoring of `db.DefaultContext` ()
delete.go Another round of `db.DefaultContext` refactor ()
delete_test.go More refactoring of `db.DefaultContext` ()
fork.go Add support for forking single branch ()
fork_test.go Add option to prohibit fork if user reached maximum limit of repositories ()
hooks.go Add user webhooks ()
lfs.go Fix bugs in LFS meta garbage collection ()
lfs_test.go Fix bugs in LFS meta garbage collection ()
main_test.go make writing main test easier ()
push.go Next round of `db.DefaultContext` refactor ()
repository.go Next round of `db.DefaultContext` refactor ()
repository_test.go refactor some functions to support ctx as first parameter ()
review.go Use context parameter in services/repository ()
review_test.go Use context parameter in services/repository ()
template.go Move notification interface to services layer ()
transfer.go Next round of `db.DefaultContext` refactor ()
transfer_test.go Replace 'userxx' with 'orgxx' in all test files when the user type is org ()