mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-29 09:06:02 +00:00
Move git changes support behind a feature
This commit is contained in:
1 parent
570805bc98
commit
4e11abdf9b
6 files changed
+31
-14
No files matched your search
@@ -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