File differences

Hello,

I would like to browse commit history of a specific file of my project and visualy side by side difference between two commit.
I can do that easily under the web inteface of Bitbucket (browse source file, select a file and click on diff).

Thank-you

 

3 answers

1 accepted

1 vote
Accepted answer

Just use control-click or command-click (depending on OS) to select two commits.  The bottom half of the screen shows the diff between them.

Screen Shot 2016-01-14 at 9.52.18 AM.png

Hello,

This is working effectively is the file that you are looking for was modified between selected commits.  If you are looking for modification in a file you have to search commit by commit.
In the Bitbucket interface, you can see for a specific file which commit is impacting.

Thanks for your comment

 

 

I think Seth's answer below about "Log Selected" is the way to go then.  It will show you which commits changed a given file and what changes they made.

Screen Shot 2016-01-15 at 9.23.23 AM.png

Screen Shot 2016-01-15 at 9.23.35 AM.png

Is that what you're looking for?

Yessss, Thank-you

If you specifically want to see the difference between adjacent commits, you can right-click on the file in SourceTree, and choose "Log Selected..."

If you don't want adjacent commits, it looks like Tim's method of control- or command- clicking commits to see a compiled diff works in the Log Selected window as well. So, "Log Selected..." the file you want, click one commit you want to diff, then control- or command- click the other.

I would like to see evolution on specific file along different commit and make difference. As we can do with Bitbucket.  Thank-you

2016-01-14_08-42-23.png

See screenshot in my answer - I think this should give you what you're looking for...

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

824 views 3 2
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you