View whole stash in SourceTree

When viewing the changes in a stash in SourceTree, some of the files changed don't show all changes.  How can I view (within SourceTree) all of the changes?

4 answers

Try to remove the index on the file, then add the index again.

It's only showing the first hundred lines of files that have been deleted or added.  I found editing the "Max Diff Line Count" (I put it arbitrarily large to 10,000 instead of stupidly small default of 100) option in Tools -> Options -> Diff fixed it.  But it still doesn't show the full contents of added/deleted files.

stash.jpg

can you attach  a screenshot to understand your question better?

I believe this is a limitation in windows version, you have the option to open it in an external tool from within sourcetree.

No, you cannot diff the files in a STASH in an external tool.  This problem still exists today.  Any file with more than 100 lines that you added to a stash cannot be viewed in the stash.  You have to apply the stash to its original branch in order to recover it.  This makes stashes difficult to use when trying to manually merge changes from one branch to another.

The SourceTree UI for this task is not helpful.  To get the full source out of a stash, you can run a 'git stash show -p stash@{0}' command in a git bash shell.  You can redirect the output into a text file and grab your complete stash source.

I found my answer here: https://stackoverflow.com/questions/37208438/see-full-content-of-stash-in-sourcetree

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

799 views 0 4
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