Getting VERSION from a git commit

question
#1

If I want to condition code on a particular commit in the upcoming master/release branch, how can I figure out the VERSION value from the commit hash? Is there some lookup table?

#2

From the root of the Julia repo:

./contrib/commit-name.sh $COMMIT_HASH
#3

I am using it wrong?

$ ./contrib/commit-name.sh a1a35583500d68b1f69b662bac6dea9ec56e59eb
fatal: Path 'VERSION' exists on disk, but not in 'a1a35583500d68b1f69b662bac6dea9ec56e59eb'.
./contrib/commit-name.sh: 13: [: =: unexpected operator
fatal: bad object a1a35583500d68b1f69b662bac6dea9ec56e59eb
fatal: bad object a1a35583500d68b1f69b662bac6dea9ec56e59eb
./contrib/commit-name.sh: 27: [: =: unexpected operator
./contrib/commit-name.sh: 30: [: =: unexpected operator
#4

No, that is the correct usage. What commit sha is that?

#5

To be clear, this is for Julia commits => Julia version.

#6

The hash is from

#7

Okay, use the commit that was actually merged to master, i.e. https://github.com/JuliaLang/julia/commit/8c445663547791e59f33f9e8d49b276332107614

$ ./contrib/commit-name.sh 8c445663547791e59f33f9e8d49b276332107614       
1.2.0-DEV.573