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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

What do the different color highlights mean in the pull request source code?

I see 4 sets of colors for code highlights: light green, dark green, light red and dark red. I'm not entirely sure what they mean and which code I should look at when doing a PR review. Mainly do I look at only dark green code or light green as well? How is light red different from dark red?

This get's especially confusing when dealing with a PR that branched off a different un-merged branch and I'm unsure of which code to be focusing on.

1 answer

1 accepted

0 votes
Answer accepted
Tyler T Atlassian Team Jul 28, 2020

Is this question about Bitbucket Cloud?

Like Tyler T likes this
Tyler T Atlassian Team Jul 29, 2020

It sounds like you have Enable word diff turned on in your viewing preferences.

Enable to display a darker shade of color on lines that have been updated or changed.

The light red/green represents lines that have changed.

The dark red/green represents individual characters on the lines that have changed.

Like Mackenzie Martyn likes this

So if multiple lines are light green but have no dark green on them, that means that they weren't changed in that branch? Or is there a different meaning?

Tyler T Atlassian Team Jul 29, 2020

If you have Enable word diff turned on and there is no dark highlighting on a line, that means the entire line changed - in other words, the entire line was either added or removed.

Hmmmm, ok thanks. I think I'm getting confused because sometimes the lint will add spacing or rearrange things and it thinks the whole line was changed.

Tyler T Atlassian Team Jul 29, 2020

Feel free to upload a screenshot here if you want to discuss further!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Bitbucket

How do you use the Bitbucket-Jira integration? How does it help your team?

Hey everyone, over the past year, we've added several new features on how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your t...

164 views 0 2
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you