forked from TeamUlysses/ulx
Added local git hooks for easy version tracking.
This commit is contained in:
parent
9a5ab02972
commit
e013f2cdb4
12
.git_hooks/post-commit
Normal file
12
.git_hooks/post-commit
Normal 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
7
.git_hooks/pre-commit
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# .git/hooks/pre-commit
|
||||
#
|
||||
|
||||
# Prevent infinite loops on post-commit
|
||||
touch .commit
|
Loading…
Reference in New Issue
Block a user