Sourcetree External Diff: Deleting temporary files

When I do an External Diff, it creates some workfiles with the strings _BACKUP_, _BASE_, _LOCAL_ and _REMOTE_ in them. These files remain even after the diff is done. I'd like them to be deleted after the external diff.

Can Sourcetree do that, or do I have to write my own script?

Sourcetree version is 2.6.3 (134)

Beyond Compare Version 4.2.2 (build 22384)

MacOS 10.11.6

Thanks!

 

1 answer

1 accepted

Sourcetree doesn't actually generate the temp files (here's an example of how it can go rogue) we just specify the diff command to be run and the argument format. It should be written to a temporary directory in /var or the like and cleaned up when the system next purges it. If it's that sensitive I'd recommend a script which you could then invoke as a custom action within Sourcetree.

Brian Ganninger
Senior Mac Developer, Sourcetree

Hi Brian, thanks for your reply, and the stackoverflow link. That should be enough to get me moving in the right direction.

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
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 ...

234 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot