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 47515
- From: Aleksandr Mezin <mezin.alexander@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [RFC PATCH v3] vcs_info: choose backend by basedir
- Date: Mon, 2 Nov 2020 05:09:36 +0600
- Archived-at: <https://zsh.org/workers/47515>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-11/CADnvcfKwbzaKCjpvPjj-7sepvyYyq5CfSGwgC0pxofcTbz64bQ%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-il1-f194.google.com) smtp.remote-ip=209.85.166.194; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none
- 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; bh=SvB1fGc9EGqdWhJ4RltqIsfO4CmxrrAyVOk7E2XBGvk=; b=a6oP3iZU7eDKvADDYzxLBHn5uHAzRnIMqBGAG7dfdcqm8VgE9EYgl4AnIPq/Fg7X9C m076xpCarrFxUvafrOk+/xR5cb4c1nfXf52t1XztMeXtLARM1vdybfHQErlob77NxVys og3P4DIxSg0ZiTTsKc0UqK8MmUlap1ELg55PnHtiet8bDDXeeO/1h6EVIy9gTwR5Wi+n iP0fd6G06UFfv3RK1ZrGsZqTO/sfaMQpJBu6iVD89KmnHNeAEVqClDPZxRuQa9JS2IAk NwXG0IeISYaHBe2tQf5TEPSHpk+L24UxBZv7qpgZXExCtexIfA1MHkTAsthSsOMRCwmZ kqwg==
- In-reply-to: <20201029012755.253085-1-mezin.alexander@gmail.com>
- 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>
- Sender: zsh-workers-request@xxxxxxx
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