Include git hash in bat -V and bat --version output if present

I had to use a `lazy_static` due to that the clap API that only accepts a
reference to a version string. And, in our code, only a 'static reference to a
version string.

Code could probably be refactored to accept a "normal" reference, but that would
be a major undertaking.
This commit is contained in:
Martin Nordholts committed 2021-10-24 11:36:55 +02:00
1 parent dde770aa21
commit 4081ace4b9
2 files changed
+17 -1

No files matched your search

+1
View File
@@ -20,6 +20,7 @@
- Add PowerShell completion, see #1826 (@rashil2000)
- Minimum supported Rust version (MSRV) bumped to 1.46
- Include git hash in `bat -V` and `bat --version` output if present. See #1921 (@Enselic)
## Syntaxes