automatic version stamping implemented (using git filters)
This commit is contained in:
parent
5e655c8e06
commit
8f317dc7dd
4 changed files with 30 additions and 3 deletions
7
deploy-versioning.sh
Executable file
7
deploy-versioning.sh
Executable 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)"
|
Loading…
Add table
Add a link
Reference in a new issue