Skip to content

Git ini files formatter #2594

Description

@eirnym

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions