Allow to select source and target branch *before* creating diff for the pull request #3315

Open
opened 2025-11-02 05:07:52 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @otbutz on GitHub (May 10, 2019).

  • Gitea version (or commit ref): 1.8.0
  • Git version: 2.21.0
  • Operating system: Ubuntu 18.04
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite

Description

The current behavior of the new pull request page is to immediately populate its content once the selection of either target or source branch is changed.

This is problematic for big repositories with long running support branches. Creating a pull request to fix a bug in our oldstable release would preselect master...master which is perfectly fine but as soon as i change either the target to our oldstable branch or the source to my bugfix branch, the page loads forever because our master and the oldstable branch differ by ~1k commits.

It would be nice if I could select both branches and start the diff only after pressing a button. If the URL in the address bar would change before trying to create the diff, that would also be a solution.

Originally created by @otbutz on GitHub (May 10, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.8.0 - Git version: 2.21.0 - Operating system: Ubuntu 18.04 - Database (use `[x]`): - [X] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite ## Description The current behavior of the new pull request page is to immediately populate its content once the selection of either target or source branch is changed. This is problematic for big repositories with long running support branches. Creating a pull request to fix a bug in our oldstable release would preselect `master...master` which is perfectly fine but as soon as i change either the target to our oldstable branch or the source to my bugfix branch, the page loads forever because our `master` and the oldstable branch differ by \~1k commits. It would be nice if I could select both branches and start the diff only after pressing a button. If the URL in the address bar would change before trying to create the diff, that would also be a solution.
GiteaMirror added the type/proposal label 2025-11-02 05:07:52 -06:00
Author
Owner

@m3rtl commented on GitHub (Dec 30, 2022):

Are there any updates on this?
That would be really helpful.

@m3rtl commented on GitHub (Dec 30, 2022): Are there any updates on this? That would be really helpful.
Author
Owner

@lunny commented on GitHub (Nov 22, 2024):

I think a solution can be https://github.com/go-gitea/gitea/issues/13949#issuecomment-2495060316

@lunny commented on GitHub (Nov 22, 2024): I think a solution can be https://github.com/go-gitea/gitea/issues/13949#issuecomment-2495060316
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3315