1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-04 20:32:27 +01:00

Move git changes support behind a feature

This commit is contained in:
David Tolnay
2020-03-30 10:37:29 -07:00
committed by David Peter
parent 570805bc98
commit 4e11abdf9b
6 changed files with 31 additions and 14 deletions

View File

@@ -68,6 +68,7 @@ impl StyleComponents {
StyleComponents(components.iter().cloned().collect())
}
#[cfg(feature = "git")]
pub fn changes(&self) -> bool {
self.0.contains(&StyleComponent::Changes)
}