-
Type:
Suggestion
-
Resolution: Unresolved
-
None
-
Component/s: Bitbucket
-
None
I'd like to suggest a PR feature - when we make a change that involves removing lines of code in one file and then pasting them into another, I'd like for that to be easy to identify. Similar to how we can see when a file has been renamed or moved (well sometimes - occasionally it still appears as "new code").
Ideally, if a certain subsection of code lines have just been moved from one file to another (or maybe same file) it would be good to highlight that and/or if a file has moved location but no code has really changed (or rather, the exact same code was somewhere else) we would be able to see that. Where those movement changes affect import statements you could colour code the changes in import statement to match the sections that have moved.
Feel like this would reduce the amount of changed lines that need to be viewed in order to go through a PR. for example - I recently completed a Pr where I was looking at some code and providing feedback, only to find (a few files later - I hadn't read the whole thing yet, so partly my fault) - that the functions I was looking at had simply been moved into a more useful place. What would have been useful is to have seen that this code was not changed, but just moved and also maybe a green tick(or red warning - or links) to where the imports of that function had been updated in line with the move.