mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-16 17:51:31 +01:00
Make 'vcs_modification_markers' change non-breaking
This commit is contained in:
parent
943b1f82b6
commit
fa25695b74
@ -20,9 +20,8 @@
|
||||
- SML, see #1005 (@kopecs)
|
||||
|
||||
## New themes
|
||||
## `bat` as a library
|
||||
|
||||
- `PrettyPrinter::vcs_modification_markers` is no longer available without the `git` feature, see #997 (@eth-p)
|
||||
## `bat` as a library
|
||||
|
||||
## Packaging
|
||||
|
||||
|
@ -165,10 +165,13 @@ impl<'a> PrettyPrinter<'a> {
|
||||
self
|
||||
}
|
||||
|
||||
/// Whether to show modification markers for VCS changes
|
||||
#[cfg(feature = "git")]
|
||||
/// Whether to show modification markers for VCS changes. This has no effect if
|
||||
/// the `git` feature is not activated.
|
||||
pub fn vcs_modification_markers(&mut self, yes: bool) -> &mut Self {
|
||||
self.active_style_components.vcs_modification_markers = yes;
|
||||
#[cfg(feature = "git")]
|
||||
{
|
||||
self.active_style_components.vcs_modification_markers = yes;
|
||||
}
|
||||
self
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user