git-filter-repo
git-filter-repo copied to clipboard
include the actual version in the binary
Currently git-filter-repo --version outputs a short hash of the script file:
$ git-filter-repo --version
a40bce548d2c
But for the naked eye that makes things harder to infer (and also harder to track this application version in other tools).
Can this also output the actual version (which IMHO should be derived from the commit tag)?
Something like (which can also include the self short hash):
$ git-filter-repo --version
v2.47.0 a40bce548d2c
Or just like git --version:
$ git --version
git version 2.34.1
To not complicate the current build process, I think its OK to only include the actual version of the script that is released as a .tar.xz artifact in the GitHub Releases page.
If that is OK for You, can I submit a PR (add a @@VERSION@@ placeholder that gets replaced with the actual version before creating the .tar.xz artifact)?