Skip to content

Commit 306a211

Browse files
committed
.gitconfig contains filters to insert bash_unit version information
from tag. Run the following command to activate this .gitconfig file locally on your system : $> git config --local include.path ../.gitconfig
1 parent 278d55f commit 306a211

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.gitconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[filter "insert_tag"]
2+
clean = sed 's:^VERSION=.*:VERSION=snapshot:'
3+
smudge = sed "s:^VERSION=.*:VERSION=$(git describe --tags --abbrev=0):"

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Be aware that bash_unit version information is extracted from git tags.
2+
If you need to deliver a versionned copy of bash_unit, you will have to
3+
activate the appropriate filters so that version information is up to
4+
date.
5+
6+
To do so, run the following command on your system :
7+
8+
$> git config --local include.path ../.gitconfig

0 commit comments

Comments
 (0)