Let's say I have a Python script called example.py which I've committed to git several times. Now what I want is to have a different script called run_example.py which relies on the first script and takes as a command-line (or configurable) argument the commit SHA hash of example.py it should use, e.g.
python run_example.py <desired SHA of example.py>
and thus by specifying a different commit hash, a different version of example.py would be referenced and run.
What's the cleanest way to achieve this?