Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,464,888
Community Members
 
Community Events
176
Community Groups

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

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 Jun 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

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 Jul 05, 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

Atlassian Community Events