mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
feat(git_metrics): add option to ignore submodules (#5052)
* add docs * update schema * ok, actually update schema * add test * fix lint * accidentally included my .devenv directory
This commit is contained in:
@@ -13,6 +13,7 @@ pub struct GitMetricsConfig<'a> {
|
||||
pub only_nonzero_diffs: bool,
|
||||
pub format: &'a str,
|
||||
pub disabled: bool,
|
||||
pub ignore_submodules: bool,
|
||||
}
|
||||
|
||||
impl<'a> Default for GitMetricsConfig<'a> {
|
||||
@@ -23,6 +24,7 @@ impl<'a> Default for GitMetricsConfig<'a> {
|
||||
only_nonzero_diffs: true,
|
||||
format: "([+$added]($added_style) )([-$deleted]($deleted_style) )",
|
||||
disabled: true,
|
||||
ignore_submodules: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user