mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-21 20:38:44 +00: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)
|
- SML, see #1005 (@kopecs)
|
||||||
|
|
||||||
## New themes
|
## 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
|
## Packaging
|
||||||
|
|
||||||
|
@ -165,10 +165,13 @@ impl<'a> PrettyPrinter<'a> {
|
|||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Whether to show modification markers for VCS changes
|
/// Whether to show modification markers for VCS changes. This has no effect if
|
||||||
#[cfg(feature = "git")]
|
/// the `git` feature is not activated.
|
||||||
pub fn vcs_modification_markers(&mut self, yes: bool) -> &mut Self {
|
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
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user