-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Labels
issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detailFor bugs, we need more details. For features, the feature must be described in more detail
Description
Description
When doing a commit from web UI, diff shows large change for a single line change, in files too large for the editor.
To reproduce, using the web GUI at try.gitea.io:
- Make a repo, initialise the repo, and commit a new text file with lots of text, definitely over 1000 lines.
- Make a new branch, edit the text file, add a single line amongst the other lines.
- Commit
- View the commit you just completed, you'll see the problem. My normal expectation is that the commit should reference up to 5 lines either side and should only modify one line (because that is what you did above), but instead, you'll see many lines also being modified, although they weren't changed.
https://try.gitea.io/vettatest2/test1/commit/fcf0c440d3fe1aad64e8884fec5d24f462cedc1a
Gitea Version
1.22.0+dev-256-gb36e2ca41
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
Too large to show in a screenshot
Git Version
Whichever try.gitea.io is running
Operating System
Whichever try.gitea.io is running
How are you running Gitea?
We run Gitea with Docker, but for this bug, it's fully reproducable in try.gitea.io.
Database
MySQL/MariaDB
Metadata
Metadata
Assignees
Labels
issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detailFor bugs, we need more details. For features, the feature must be described in more detail