Function to extract an ASCII file from a specific git revision

Function to extract an ASCII file from a specific git revision

aux_getFileGitRevision(filename, revision, outputfile)

Arguments

filename

Name of the file to extract from a git revision. Ensure it is an ASCII file (txt, csv, etc.) but no binary one (exe, zip, xls, etc). The filename can be provided with a relative path from the current working directory.

revision

Revision number of the git repository. Usually these are the first N characters of the SHA hash for a git revision. N should be >= 5 at least.

outputfile

Name of the output file. Can include a relative path from the current working directory