Re-name files in Web IDE in a more natural way
Problem to solve
At the moment, when one renames a file in Web IDE, it essentially results in combination of git rm
+ git add
that is shown as two different changes in "Commit" tab. This is quite destructive as it wipes out the changes history for such file.
Target audience
-
Delaney, Development Team Lead, https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas#delaney-development-team-lead
-
Sasha, Software Developer, https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas#sasha-software-developer
Further details/Proposal
It would be much nicer and correct, I think, to do it with pure git mv
that is built exactly for re-naming in particular.
This way we would preserve the changes history for the file and it would make more sense to the users I assume.
What does success look like, and how can we measure that?
Users willing to re-name a file would have just one entry in their "Unstaged changes" section. Also, users would get consistent behavior of renaming operation both in Web IDE and their terminals (because rarely somebody re-names a file with deleting a file and then creating a new file with the same content).