Can we add git commit count to build information?
tiann opened this issue · 3 comments
tiann commented
The result of git rev-list --count HEAD
is sometimes useful to generate version code.
baoyachi commented
Hi @tiann
shadow-rs
support extended hook function.
If you want add git rev-list --count HEAD
result in you build project. I suggest use new_hook
function.
The detail example ,please see
tiann commented
If using a hook, we may need to integrate the git2 dependency or install git. I would be happy to submit a PR if you are willing to accept this feature.
baoyachi commented
Currently, the feature is not needed.