Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Custom diff tool: finding the $REMOTE$ file

I posted last week about my issues trying to call Beyond Compare as a diff tool with Visual FoxPro's binary files. (

Elsewhere, someone suggested I could write a custom EXE to use as the Diff tool and make it an intermediary that would grab the parameters coming from Sourcetree and do what's necessary to pass Beyond Compare the right parameters to make this work.

I've been working on this, but just realized I have a major issue. When comparing an uncommitted file to the most recent commit, the $LOCAL$ parameter passes a fully-pathed filename in the Temp folder (which appears to be the committed file); perfect for my needs. The $REMOTE$ parameter, however, gives me a relative path in my development folders (for example, CLASSLIBS\MyClassLib.VCX).

Is there a way for my tool to know the full path for that file? Obviously, if I want to use this with only one repository, I can hard-code it, but I'm trying to write a tool I can use across all my projects.

1 answer

1 accepted

0 votes
Answer accepted

I've found a solution using a built-in Visual FoxPro function with a worst case of prompting to find the file.

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events