Forums

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

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

Mackenzie Martyn July 28, 2020

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
Atlassian Team members are employees working across the company in a wide variety of roles.
July 28, 2020

Is this question about Bitbucket Cloud?

Mackenzie Martyn July 28, 2020

yes

Like Tyler T likes this
Tyler T
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 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 # people like this
Mackenzie Martyn July 29, 2020

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
Atlassian Team members are employees working across the company in a wide variety of roles.
July 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.

Mackenzie Martyn July 29, 2020

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
Atlassian Team members are employees working across the company in a wide variety of roles.
July 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
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events