lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to append a git version to an output filename


From: Urs Liska
Subject: Re: How to append a git version to an output filename
Date: Sun, 14 Jan 2018 11:52:45 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2



Am 14.01.2018 um 11:44 schrieb Andrew Bernard:
Hi Ben,

I think the desire to add git version information to files is a hangover from earlier days when people used to do this with SCCS, CVS, RCS, and all those antique systems. With git, due to its model, that's not so commonly done nowadays.

If you want to manage your files by the complex git hash numbers, then why not check in the output to the commit as well? Then you can simply add tags to make it more humanly readable. You could add the tag name to the file name if you really so desired. Seems simpler that what you are asking to do.

I know this is not the answer you are looking for, but may be a way to go?

Generally it's straightforward to have LilyPond run Git during compilation and add any log output to the filename or the tagline. (As is already wrapped by my command linked to in the previous comment.

One thing to consider is that more often than not scores will be compiled with uncommitted changes being present, so the git committish may actually be misleading. (I have added several commands to handle that too).

Urs



Andrew



_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user


reply via email to

[Prev in Thread] Current Thread [Next in Thread]