This PR adds in a version number that is printed to the debug stream when you first start ModShot, and also accessible from Ruby via the MODSHOT_VERSION global constant. The version number is a string like 48ca96f-dirty-210227-121813:
The first part is the current checked out git commit hash (or nongit if the source code isn't in a git repo)
If the repo isn't clean (e.g. git status doesn't show working tree clean), it will add -dirty- to the version.
The last two numbers are the build date and time in UTC.
Note: if there are conflicts with the master branch since I'm making a lot of PRs, you can approve the change and I'll manually merge things in myself.
This PR adds in a version number that is printed to the debug stream when you first start ModShot, and also accessible from Ruby via the
MODSHOT_VERSION
global constant. The version number is a string like48ca96f-dirty-210227-121813
:nongit
if the source code isn't in a git repo)git status
doesn't showworking tree clean
), it will add-dirty-
to the version.Note: if there are conflicts with the master branch since I'm making a lot of PRs, you can approve the change and I'll manually merge things in myself.