openlilylib / snippets

A place to store useful pieces of LilyPond code - custom functions, engravers, hacks, templates, examples etc.
Other
119 stars 39 forks source link

[git-commands] adds gitFileRevision #146

Closed Dekker1 closed 7 years ago

Dekker1 commented 8 years ago

Closes issue #145. This request adds the gitFileRevision command. gitFileRevision outputs the number of changes involving the file of which the path is given as an argument. This function can be used together works well with the \thisFile function in openlilylib, as shown in the added example.

The only thing that would have been better, would be to integrate the \thisFile function from the openlilylib in the actual function definition. This would avoid having to use an argument. The only way I found to integrate scheme functions and markup functions was using lilypond code blocks, but than the evaluation of \thisFilepoints to the definitions file.

uliska commented 7 years ago

Hi, sorry for having left this PR open for so long and thank you for the contribution

uliska commented 7 years ago

Ah, one more thing: Please prepare future pull requests on dedicated branches instead of on master. This is cleaner and avoids possible complications when you pull new code