WebIDE doesn't preserve changes on a later re-named file
Summary
In the WebIDE, when following the same actions:
- editing a file,
- re-naming it
Only the renaming gets preserved in the created branch/MR.
Note that if the order of the steps is reversed (first re-name, then edit), the resulting branch contains the result of both operations.
Steps to reproduce
- Open a project in WebIDE
- Open a file
- Edit the file
- Re-name this file
- Click "Commit" and create a new branch
- Obvserve the changes in the branch: only the re-name of the file will be there
Example Project
What is the current bug behavior?
The changes to the file get lost
What is the expected correct behavior?
Both the rename and the edits on a file should be in the newly-created branhc
Output of checks
This bug happens on GitLab.com
Edited by Denys Mishunov