summaryrefslogtreecommitdiffstats
path: root/src/configs/git_metrics.rs
AgeCommit message (Collapse)Author
2023-04-13feat(git_metrics): add option to ignore submodules (#5052)Colton Donnelly
* add docs * update schema * ok, actually update schema * add test * fix lint * accidentally included my .devenv directory
2022-09-09feat(schema): deny unknown keys (#4270)David Knaack
2022-04-01feat: allow printing config file schema (#3737)David Knaack
2022-03-26refactor: replace module_config_derive with serde (#3786)David Knaack
* refactor: replace module_config_derive with serde Changes include: * Removing `starship_module_config_derive` and replacing it with `serde::Deserialize` * Removing `RootModuleConfig::load_config`. While potentially useful, it was only used in tests. And it would require something like `serde::DeserializeSeed` which is not derived by serde. * Merging `RootModuleConfig` into `ModuleConfig` * Implementing a `ValueDeserializer` that holds a reference to a `toml::Value` in `serde_utils.rs` * Deserialization errors (invalid type) are now logged and include the current key and the struct names * Unknown keys are now considered an error. "Did you mean?"-messages are still possible * fix typo Co-authored-by: Matan Kushner <hello@matchai.dev> Co-authored-by: Matan Kushner <hello@matchai.dev>
2021-08-27feat(git_metrics): Git metrics show only nonzero diffs (#2887)filip
* implement only_nonzero_diffs configuration option * update documetation
2021-07-10feat: Add the `git_metrics` module (#2827)Alexander Gonzalez
This PR adds a new module named git_metrics. It shows the added/deleted lines in the current git repository following the format: "[+$added_lines]($added_style) [-$deleted_lines]($deleted_style)".