mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-13 07:56:29 +00:00
Tell if exa was compiled with git support or not when using --help
This commit is contained in:
parent
a740512014
commit
42bc34f339
@ -31,7 +31,11 @@ impl VersionString {
|
||||
|
||||
impl fmt::Display for VersionString {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
|
||||
writeln!(f, "{}", include!(concat!(env!("OUT_DIR"), "/version_string.txt")))
|
||||
writeln!(
|
||||
f,
|
||||
"{} (git support: {})",
|
||||
include!(concat!(env!("OUT_DIR"), "/version_string.txt")),
|
||||
if cfg!(feature = "git") { "enabled" } else { "disabled" })
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user