1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-12 00:02:28 +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:
Ethan P
2020-05-12 22:24:51 -07:00
parent 0aca8cab0b
commit 887e61a99d
5 changed files with 75 additions and 60 deletions

View File

@@ -111,8 +111,7 @@ impl<'a> InteractivePrinter<'a> {
config: &'a Config,
assets: &'a HighlightingAssets,
input: &mut OpenedInput,
#[cfg(feature = "git")]
line_changes: &'a Option<LineChanges>,
#[cfg(feature = "git")] line_changes: &'a Option<LineChanges>,
) -> Self {
let theme = assets.get_theme(&config.theme);