Add support for forking single branch#25821
Conversation
|
Extra idea: maybe we should support the same option for migrations? It's maybe even more useful in such case when people migrate (essentially fork a repo to their instance) for development purpose |
|
I understand the point of fork arbitrary branch, but list all branches at one time may cause performance problem. |
Fixes go-gitea#25117 Add UI for choosing branch to fork Change default branch on single-branch forks
502e790 to
0d4460d
Compare
Other places where branch list is used do render it in once. Listing branches and putting them into a template shouldn't hog the performance a lot |
|
@sh7dm Could you please resolve conflicts? I totally missed this PR, but it looks uncomplicated to review. Unfortunately we're already in feature freeze for 1.21 though... |
Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
|
Could you paste a screenshot? |
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
|
Alternative design idea: |
I think it's good idea but could be another PR. At least, this PR allow we fork with a single branch. |

Fixes #25117
Add UI for choosing branch to fork
Change default branch on single-branch forks