git tags would be useful for rebuilding historic versions of J.

However, in our current process, we do not necessarily create a tag as
a part of a J release.

So it would be nice if we retained enough information to retroactively
tag a release.

I think the best way of achieving this goal would be to include the
git short hash (as provided by git rev-parse --short HEAD) in
JVERSION.

For example:

echo "#define GITHASH $(git rev-parse --short HEAD)" >jsrc/githash.h

And then #GITHASH would be a quoted string which could be exposed in
the result of a !: verb.

Accomplishing this in a .cmd file would be similar but I don't know
enough about that environment. (Possibly, the implementation of git
includes a mingw shell, which would support this exact same syntax?)

Thanks,

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to