Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [RFC PATCH v3] vcs_info: choose backend by basedir



On Thu, Oct 29, 2020 at 7:28 AM Aleksandr Mezin
<mezin.alexander@xxxxxxxxx> wrote:
> It's possible to revert to the old behavior of vcs_info, by setting:
>
>     zstyle ':vcs_info:*' backend-choice enablement-order
>

Now I'm not sure if an "enum-like" zstyle is a good idea.

1) Should I check somewhere that the string value is valid (i.e. it's
either empty, or one of the predefined strings)?

2) Extensibility: I don't think there will be another different mode
that should be controlled by this zstyle. More likely, there will be
parameters like "prefer non-ancestor vcs directories or not". And IMO
they should have their own boolean zstyles, and not something like
`backend-choice closest-vcs-dir-prefer-ancestors`. And even more
likely, nobody will add anything there




Messages sorted by: Reverse Date, Date, Thread, Author