LookingGlass/pre-commit
Geoffrey McRae 3d136a28a0 [all] added pre-commit script and VERSION
This script belongs in .git/hooks/ to bump the version each commit.
2019-03-28 12:24:38 +11:00

7 lines
120 B
Bash
Executable File

#!/bin/bash
(
git describe --always --long --abbrev=10 --tags | tr -d '\n'
echo -n '+1'
) > VERSION
git add VERSION