Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [RFC PATCH v3] vcs_info: choose backend by basedir
- X-seq: zsh-workers 47524
- From: Aleksandr Mezin <mezin.alexander@xxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: [RFC PATCH v3] vcs_info: choose backend by basedir
- Date: Thu, 5 Nov 2020 06:50:25 +0600
- Archived-at: <https://zsh.org/workers/47524>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-11/CADnvcfJ4a6LdTTh2G1Vs4M7rgM3nm-9Qfhww%3DVYK5Me6tLBYsg%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-io1-f65.google.com) smtp.remote-ip=209.85.166.65; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cfZllvRHeKrd0qyt4yf1DuOvSSCjCCnvDdSl4hGs4v0=; b=U3a6hrQgy3LJSqbRcRuUnHoxLe/8qQJfJ3Vu0ibhSEDULqA6V3bWzoDanWUpmYl2PI QpgvQbbw8GIXDCwmNJw4KvKS6zDhB46Cj6wHvJUzRrEF7KggFbTf7IA5Q7wyu0ISvQ4Q Iv1EyFMeeCxt6EaErG2JDmjf2M/d/Rli4Y6rE/qvAispNDHrNWvKTfAhDGJdCAPFiDfj C580UvosfzrM8zRh/rQEAL+RTyVLLQ5scBXAmfgvtyxfHTxSsDxwCaIEvVSnpgP6Y3RJ 3z8WqSL4KsbfTxG8dnrPJQAIn6YK2lPJk/18O6Sg0t2gQn5B4/tyfBtILBkd0kq1z5kA K+Ww==
- In-reply-to: <20201104063824.74110106@tarpaulin.shahaf.local2>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-workers>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-workers.zsh.org>
- List-owner: <mailto:zsh-workers-request@zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-workers>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-workers>
- References: <20201029012755.253085-1-mezin.alexander@gmail.com> <CADnvcfKwbzaKCjpvPjj-7sepvyYyq5CfSGwgC0pxofcTbz64bQ@mail.gmail.com> <20201104063824.74110106@tarpaulin.shahaf.local2>
- Sender: zsh-workers-request@xxxxxxx
On Wed, Nov 4, 2020 at 12:38 PM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> About extensibility, needs for extensibility aren't always foreseen.
I guess they can't be foreseen both ways, i.e. extensibility may be
needed where you didn't expect, but also maybe extensibility won't be
needed where you expected and designed. But creating a "more
extensible" interface takes more time, and this way you usually have
more complex code. So maybe this "premature extensibility" isn't worth
it?
>
> As to their own boolean styles, I'm not sure I agree. zstyle values are
> arrays, so we could let parameters be provided in additional words, as
> in:
> .
> zstyle $pattern $style enablement-order foo=bar
> zstyle $pattern $style closest-.vcs-dir lorem=ipsum
>
> Hmm. Perhaps it would make more sense to name the style "disk-layout",
> and then the extra parameters could be used to choose whether to select
> the closest or farthest .${vcs} dir.
>
> Or perhaps an enum really is overkill, as you say.
After your reply, for me it now seems to be even more overkill than before
Messages sorted by:
Reverse Date,
Date,
Thread,
Author