mirror of
https://github.com/sharkdp/bat
synced 2026-07-29 18:01:43 +00: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