Description
- Gitea version (or commit ref): 1.3
- Git version: n/a
- Operating system: n/a
- Database (use
[x]
):- [x ] PostgreSQL
- [x ] MySQL
- [x ] MSSQL
- [x ] SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Log gist:
Description
When opening the compare-Page (to create a pull request or just compare two branches) the diff is calculated automatically.
If you're now changing one of the branches (head or base) gitea will automatically reload the page and calculate the diff again.
Depending on the amount of changes this may take a while.
Idea or suggestion would be to introduce a new "Calculate changes" button that triggers a page reload and thus prevents useless diff calculations on wrong selection of a branch or when you need to change both branch values.
In order to not break any existing workflows i'd suggust to calculate the diff when opening the page with two branches selected directly and just enable the calculate changes button when a branch is changed.
I did a first working prototype - please see attached screenshots.
Should I open a pull request for this or do you think this isn't a good idea?
Screenshots
Initial layout of the page (when opened with two branches the diff is displayed)
After a branch is changed the diff will be removed and just a short hint is displayed: