mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-20 12:12:31 +01:00
Allow application to be built without git support
Caveats: The help descriptions aren't changed with you remove the "git" feature.
This commit is contained in:
@@ -270,6 +270,7 @@ impl<'a> PrettyPrinter<'a> {
|
||||
style_components.push(StyleComponent::Snip);
|
||||
}
|
||||
if self.active_style_components.vcs_modification_markers {
|
||||
#[cfg(feature = "git")]
|
||||
style_components.push(StyleComponent::Changes);
|
||||
}
|
||||
self.config.style_components = StyleComponents::new(&style_components);
|
||||
|
Reference in New Issue
Block a user