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

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,897 views 0 7
Read article

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