Added local git hooks for easy version tracking.

This commit is contained in:
SticklyMan 2015-11-17 15:03:34 -07:00
parent 9a5ab02972
commit e013f2cdb4
3 changed files with 20 additions and 0 deletions

12
.git_hooks/post-commit Normal file
View File

@ -0,0 +1,12 @@
#!/bin/sh
#
# .git/hooks/post-commit
#
if [ -a .commit ]
then
rm .commit
echo `date '+%s'` > version
git add version
git commit --amend -C HEAD --no-verify
fi

7
.git_hooks/pre-commit Normal file
View File

@ -0,0 +1,7 @@
#!/bin/sh
#
# .git/hooks/pre-commit
#
# Prevent infinite loops on post-commit
touch .commit

1
version Normal file
View File

@ -0,0 +1 @@
1447797815