diffing old commits only shows last file
Asked by Giles Velarde:

Hi,

I am using SourceTree on OSX (10.7.3) and recently spotted a change in behaviour. It may have been around the time I moved SourceTree to use a system git (git version 1.8.1). To complicate things I am using it as a client to an SVN repo (which works really well).

Anyway, if I look on the command line at the diff between two commits e.g.

$ git diff 6b15e480047fad4c0c3cde6348628264981c2c5a 468c53004f90a7d05fa788dd1e5c26c60bafd788

I can see several files listed. Selecting an old commit in SourceTree used to do the same thing, but now only shows the last file that I can see in the diff.

I have tried going back to using the embedded git, but this doed not seem to fix it.

I may try doing a fresh clone, but have been avoiding trying this because of the relative slowness of the initial export from svn.

Thank you.


Answers:
author: KieranA
body: Hi Giles,

It sounds to me similar to what some other users in the past have done where they've changed the size of their file/diff pane in SourceTree so that they can't see the files. By default it selects the first file in the list rather than all the files. Check out the screenshot below to see what your view should look like:

![](http://i.imgur.com/roDYlQ3.png)

To fix this, you should hover your cursor over the left edge of the diff view. It might be difficult to grab because you've got the tree view resizer and then you may have the ability to resize the diff view.

Hope that helps

comments: author: Giles Velarde
body: That's fixed it thanks! And yes it's hard to grab and really not obvious that this is where one should grab. Perhaps an item in the view menu to restore it if completely hidden might help? (that's the first place I tried after failing various grab operations originally - before I posted the question)


author: KieranA
body: Hi Giles. I've filed an issue for you here: <https://jira.atlassian.com/browse/SRCTREE-1499>


author: Giles Velarde
body: Looks great. Thanks!


author: Nick Sophinos
body: Man, that issue made using SourceTree very difficult to use for the last month or so. Thanks for the answer. SourceTree might need a "Reset Perspective" menu option like Eclipse where one can bring it back to the original view defaults when things get messed up.


author: Nick Sophinos
body: Man, that issue made using SourceTree very difficult to use for the last month or so. Thanks for the answer. SourceTree might need a "Reset Perspective" menu option like Eclipse where one can bring it back to the original view defaults when things get messed up.


author: Matthew Setter
body: Kieran, thanks for the tip. I'd somehow minimised the files pane so that I couldn't see it. Your tip was spot on and now I can see all files in a commit.


author: Mark Chitty
body: OMG, I just spent half an hour swearing at Sourcetree, Google, my innocent co-workers, trying to solve this issue. I even hovered over the left edge 3 times before I - briefly - saw the resize cursor. Please please add a small bar to the UI when the file list is collapsed so that you know it even exists to un-collapse it.

Tx for the help here. Phew. I can actually get on with something useful now.


author: tarling
body: Thanks for the answer. +1 for some sort of Reset View command


author: rasikaconsulting
body: I had another variation on this problem: I had minimized the file listing vertically (and pushed it all the way to the bottom), so I could see only the commit summary and a single file diff. Also very hard to find the right place to drag up and restore the pane.


author: Lance Parker
body: This was my problem too!


author: Giles Velarde
body: Was just reminded of why I moved to using a system git:

git -c diff.mnemonicprefix=false -c core.quotepath=false svn rebase

Can't locate object method "path" via package "Git::SVN" at /usr/local/git/lib/perl5/site_perl/Git/SVN/Ra.pm line 338.

Completed with errors, see above

I know this issue was addressed in other posts.