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

How can I configure SourceTree's internal diff tool to correctly show file changes between renames?

Jonathan Smith August 4, 2021

Hello,

I wanted to ask if there was a way to configure SourceTree so that it correctly displays the differences made to a file, even once it's been renamed between commits.

For example, if I have a repository and a file named "A1310R1_M05.txt" at the root, and I use the command "git mv A1310R1_M05.txt A1310R1_M06.txt" to rename the file, I can no longer use SourceTree's internal diff view to see what changes were made to it between commits when clicking on it in the file list.

Instead, every line in the diff view ends up highlighted green with a '+' symbol to the left of it, as though none of those lines ever existed in the original file before the rename took place.

Is there some way around this without having to open up the A1310R1_M05.txt file in one of the commits, and A1310R1_M06.txt from another commit side-by-side in another diff application?

Thank you,
Jonathan Smith

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events