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:
committed by
David Peter
parent
570805bc98
commit
4e11abdf9b
@@ -68,6 +68,7 @@ impl StyleComponents {
|
||||
StyleComponents(components.iter().cloned().collect())
|
||||
}
|
||||
|
||||
#[cfg(feature = "git")]
|
||||
pub fn changes(&self) -> bool {
|
||||
self.0.contains(&StyleComponent::Changes)
|
||||
}
|
||||
|
Reference in New Issue
Block a user