1
0
mirror of https://github.com/pbatard/rufus.git synced 2026-10-24 02:28:58 +03:00
Files
rufus/_post-commit.sh
2011-11-30 18:45:16 +00:00

14 lines
361 B
Bash

#!/bin/sh
#
# Creates a tag according to the number of commits on this branch
#
# To have git run this script on commit, create a "post-commit" text file in
# .git/hooks/ with the following content:
# #!/bin/sh
# source ./_post-commit.sh
type -P git &>/dev/null || { echo "git command not found. Aborting." >&2; exit 1; }
TAGVER=`cat .tag`
git tag "#$TAGVER"