[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to append a git version to an output filename
From: |
Noeck |
Subject: |
Re: How to append a git version to an output filename |
Date: |
Sun, 14 Jan 2018 22:51:48 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 |
Hi,
when I've seen the inclusion of git information on lilypondblog [1], I
liked it and adapted it to my taste:
Of course one can include a whole git log in the score, but the only
thing I was interested in is this: If I have a printed score or a PDF, I
want to know which version that was. All the rest I can look up in git.
And the versioning, I do with tags because I like it more than
hexadecimal hashes.
I have a tag for each year and each commit since then is counted, so
what I write on the score looks like:
Version 2018.25
It's derived from `git describe`, the full command is:
git describe --long --dirty='+' | sed 's/-/./' | sed -r 's/-g[0-9a-f]+//g'
I like the combination of `git describe` and tags a lot. That's my
personal optimum between usefulness and beauty for both technical and
non-technical readers of the score.
Cheers,
Joram
[1]:
http://lilypondblog.org/2014/04/printing-git-versioning-info-in-a-score/
Re: How to append a git version to an output filename, Urs Liska, 2018/01/14
Re: How to append a git version to an output filename, Andrew Bernard, 2018/01/14