git show with copying file as custom action

We want to define a custom action, which copies a specific file from a selected commit to a temporary file,

The goal is to be able to then merge/compare the files using an external tool, which unfortunately cannot be called from command line. (Specifically: Codesys)

The solution we were trying so far is the following custom action:
Script to run: C:\Program Files\Git\bin\git.exe
Parameters: show $SHA:./test.project > ./test_old.project

However, this does not seem to work, even though copying the resulting command to the git terminal works just fine...
The resulting message was at first something about " > " being ambiguos, but somehow it in by now just "Completed with errors, see above."

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Wednesday in Hipchat Cloud

Hipchat Cloud and Stride End of Life: Just over 90 days away

Earlier this year we made the difficult decision to discontinue our team messaging tools, Stride and Hipchat. The end of life date for Stride and Hipchat Cloud is quickly approaching - February 15, 2...

46 views 0 2
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