Browse files

add hint to in git-version-string

  • Loading branch information...
ansemjo committed Nov 19, 2018
1 parent 824668c commit 35f53e52cec9f568710a9e526eab30cc806712f1
Showing with 11 additions and 0 deletions.
  1. +11 −0 content/post/2018/
@@ -148,3 +148,14 @@ To sum up ..
`.gitattributes` file
- build your software from `git archive HEAD` archives
- optionally check for the `Format:` substring and replace with a default like `development`
# version.<!--nolink-->sh
I took the ideas from this post and some inspiration from a
[pull request]( to actually implement
this versioning in an existing project and wrote
[ansemjo/]( It is a bash script which uses the
format substitution explained above to output normalized version strings whether you are running it
in checked-out repository or from a downloaded tarball. This somewhat eases the need to reimplement
this idea in every language you use. Almost all languages should have a way to call subprocesses and
use their output somehow.

0 comments on commit 35f53e5

Please sign in to comment.