Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

There is the way to add ability to mark moved code in pull requests?

Nikita Kargapoltsev
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 29, 2022

Some code in PR is moved so It is not need to check it. This feature makes viewing PR more simply.

1 answer

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 30, 2022

Hey @Nikita Kargapoltsev ,

Thank you for reaching out to Atlassian Community!

If by "some code in PR is moved" you mean that some changes in the source branch of the PR were already committed to the destination branch of the PR, and you do not want to see these already committed changes in the PR's  diff, you can simply sync the destination branch to your source branch.

The sync can be done by merging the destination branch into the source branch (locally or in the UI), or it can be done by rebasing the feature branch locally. Instructions for both are detailed here

Thank you, @Nikita Kargapoltsev .

Kind regards,

Patrik S

Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 1, 2022

Hey @Patrik S

@Nikita Kargapoltsev seems to be facing some problems to post a reply to your thread. He opened an abuse report asking to add the following message on his behalf:

Sorry for incorrect question. I mean some lines can be moved from one place to another in one file or from one file to another. For example git diff can does it with option --color-moved.

@Nikita Kargapoltsev can you please use your browser in incognito mode and try to post any message again?

Thanks!

Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 5, 2022

Hey @Petter Gonçalves ,

Thank you for the heads-up!

Hello @Nikita Kargapoltsev ,

I'm afraid that is currently not possible to show moved lines of code colored differently in Pull Request's diff in the UI. In this case, I went ahead and created a feature request to implement this functionality, which you can find in the following link :

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with this policy in mind: https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html

Thank you, @Nikita Kargapoltsev .

Kind regards,

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events