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

In a pull request review (diff), what is the meaning of the colors of the files in the list?

Tia Sims May 7, 2018

When viewing a "pull" request, I click on "diff".  I see a list of file names on the left and the differences for the file I clicked on the right.

The file name colors are brown, blue-grey, green, light blue-grey, and red.  I can guess that red means a file was removed.  But,  what about the other colors?  What do they indicate?

2 answers

1 vote
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 17, 2018

Hi Tia,

In the diff view there is a file tree showing all of the changes for that pull request. The colour of a particular file indicates the file change type:

  • Green - ADDED (a new file was added)
  • Blue - MODIFIED (an existing file was modified)
  • Brown - COPIED (an existing file was copied to create a new file)
  • Brown - MOVED (an existing file was moved to a new path)
  • Red - REMOVED (an existing file was removed)

Git is used to determine what the change type of a file is. See "git help diff-tree" for more information.

A bolded file indicates that you have not yet viewed that file since the last time it was changed. Clicking on a file will unbold it, and it will remain unbolded unless a commit is pushed to the source branch of the pull request which modifies that file.

Kind regards,
Stefan Petrucev
Atlassian Bitbucket

IdelfonsoG July 31, 2020

Hi @Stefan is there like an update maybe here for 2020?


or maybe there is a duplicate I see double brown

Like Bianca Trutiu likes this
0 votes
owenboyle February 3, 2023

I find the idea of highlighting a copied file a bit weird...

If I use an existing file as a template for a new file, then all I've really done is create a new file. Is it really important that I copied a file to get the new file?

In fact, it's confusing - since it flags all the changes between the original file and the new file, it looks like I've royally screwed up an existing file!

What is the point of differentiating between a newly-composed file and a copied-then-edited file? What am I missing?

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events