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 Join to answer
Community showcase
Jason Wong
Published Tuesday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

419 views 6 16
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