Summary 💡
I'd like to see git file formatter.
Motivation 🔦
It's easy to indent it incorrectly or in non-normalized way which could obscure mistakes. Also git config format is not a simple ini file, and supports lines like "section.key= value" (e.g. filter.lfs.required=true (here I can be mistaken).
A simple formatter would satisfy basics to avoid such problems.
The gix-config module tries to read recursively, which breaks possible implementation of this feature in a third-party crate. I would like not to fork the crate to keep support consistent. If there would be a feature in this module to read "flat", I could publish the formatter
What do you think?
Summary 💡
I'd like to see git file formatter.
Motivation 🔦
It's easy to indent it incorrectly or in non-normalized way which could obscure mistakes. Also git config format is not a simple ini file, and supports lines like "section.key= value" (e.g.
filter.lfs.required=true(here I can be mistaken).A simple formatter would satisfy basics to avoid such problems.
The
gix-configmodule tries to read recursively, which breaks possible implementation of this feature in a third-party crate. I would like not to fork the crate to keep support consistent. If there would be a feature in this module to read "flat", I could publish the formatterWhat do you think?