You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I posted last week about my issues trying to call Beyond Compare as a diff tool with Visual FoxPro's binary files. (https://community.atlassian.com/t5/Sourcetree-questions/Problem-using-Beyond-Compare-for-diffs-on-paired-files/qaq-p/1547539)
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.