automatic version stamping implemented (using git filters)

This commit is contained in:
Overwatch 2014-08-17 21:39:40 +02:00
parent 5e655c8e06
commit 5e986b4957
4 changed files with 30 additions and 3 deletions

7
deploy-versioning.sh Executable file
View file

@ -0,0 +1,7 @@
#! /bin/bash
# encoding: utf-8
echo "*.py filter=version" >> .git/info/attributes
ln -fs ../version-tool.py .git/version-tool.py
git config --local filter.version.clean="python3 ./.git/version-tool.py --clean"
git config --local filter.version.smudge="python3 ./.git/version-tool.py --set $(git rev-list HEAD --count) $(git rev-parse HEAD)"