mirror of
https://github.com/sharkdp/bat
synced 2026-08-11 20:11:43 +00: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