From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27622 invoked from network); 25 Oct 2020 19:54:27 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 25 Oct 2020 19:54:27 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1603655667; b=uTD5FSEHpLcVFBs+2f1l7KXoQJKqYkId2OFnhpZ1MuAjujtO6zec3nmkkkqRlJbBwTyc5FpWrb UzgaxlNbF8i3BavfKDZEO+cIGP5j1bCDpot6i+ci2B2zzxsijSwBsNRT7u6A7hd449hVJrWr0q 6wpENQWzzTCOBYUQlOihHdLJotvKY1MvLnl/hSq/n5ooo+DystrhiyrczJxsnNqnUArHAHxKkX xcgpYShziWtz00QpLq8RVdKnHEf5NWJjebvwKqo2qvKpU+MppcJzTvLeE8vCI5AOJp+5Bhmzx7 jONRkHfQTl2yYGy+eTfSL1J5yTvY9eeyFvlYXSv6AD6uzQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out4-smtp.messagingengine.com) smtp.remote-ip=66.111.4.28; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1603655667; bh=0gAVmV9ipZmrbZZmtU2CzA/9fnz8V2q2krNrS6DfeTI=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version: References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=cAeP5bTYmRfJ5tiRUAUND9ECrulT11iJJOWM6EveUQqrWhlHx4rx098RTfVeuZ9C6hp4CGsrvH UNSYCwUvM4yWs5OITKvECS4JCZbA/hq35ZVQD+kQxNRCiikywk8BcmmqYF3BLFtZgsberDZbkm zuoX/XMkfNreZ1gEhyGNQdiNBRgICtbxBsesMGGv21OcfBIdEHJYxrQYYtnsfWftjsIRUFH+wZ hPXD4smVe1lzAfiFLCQwJybb6U+LpoKukisFoLLbwI55aTmiGad7yUcOqqGtWdXRitgREC38D/ 9reEZHnXCgKpOn/DuWeQlQyeoai5tVhRQ5lb7+gW/XsbrA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=NBjQNuvyic/KJHss+H98UWgywjXCdOGG2rvXfKfuwWs=; b=zgrUbHRXEWHxdgtRFOPdS+9HlR 10QdZH8b/VGVK5liScbwWjXC11CcqWTTb9ttQJVJegmuSGRE2uTXaF9fuU79ruW6CI0b6Jm75uC3k vq3Nw0m5Cvp4GJ8RwHE4gVSEor/4l8Bsyc6zR6JP9AU+FirQuFQ6zWD7xaqaN0t/s+sIOvZYfOdq2 Qo7lDVoIir51KC5CaeR1tyBM3WyP/c2N9qsRjRlDUYk3sQW+ZdvyzutVgfSqSriKZ0EnQ6Ag/qps+ 4lAU4rfmuY4loK/X/EfQ8k+C0MSdEFZyqm2wdu+ezq41e8pqJkJ1zqBtk2E2PP3RvFml4ZusqOb9W mkNLMqNA==; Received: from authenticated user by zero.zsh.org with local id 1kWm5v-00090m-UK; Sun, 25 Oct 2020 19:54:23 +0000 Authentication-Results: zsh.org; iprev=pass (out4-smtp.messagingengine.com) smtp.remote-ip=66.111.4.28; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from out4-smtp.messagingengine.com ([66.111.4.28]:40939) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1kWm5d-0008rK-Nf; Sun, 25 Oct 2020 19:54:06 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id E27F55C00AB; Sun, 25 Oct 2020 15:54:04 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 25 Oct 2020 15:54:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=fm1; bh=NBjQNuvyic/KJHss+H98UWgywj XCdOGG2rvXfKfuwWs=; b=UOtemN8jd96MRmb2IfCX1Nybw9+3Dt4/vgyvSEcX3f 3yyMjoBA4MEat6cvNJ0TZfSHrbBP1ZUqDv+kpqDPSksKmLRpShiJ/BZDGgAEneNP ekDY9nkXXFcCeeWC0xIotYoenhbT51Mjgkv35ROsV5J4X4iNjFq4HKhrl3otjRpD +LvHjrSrOr2C7WM+RnQ+z/55CmLMPt6EWOf0I88/zoicYAwTePXSMW3KZ2BI/LoN fJQjsibEgSmEyJUxh8vTMVr0fB4y7YnjOZaTfdVoJzxuciTkH3mTOT32t+wo7N+8 YEiMKWLyoq9mSAn1wkD5UxdpwEGORGLE64gS2TY41hgw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=NBjQNuvyic/KJHss+H98UWgywjXCdOGG2rvXfKfuw Ws=; b=TjyqlBpG881AxXYUIWDGX9eoUscRxGwKx8iNnxNbXQ0t7jroGOUMXX1j8 GnCMgB4bahN5kJtgxNSlTRZqt9mWhzSgy7utiGHgcGSZKvLR1ZhQXmnVj0ll4wTx 4cL36XpcAcogKcmhToeu65pCC9KnjisT0FtIx9cdIl3E2fQF0CNfL6pAJzTwfnVe ot5RWokdv7A9PxNHx2rp8PA09H+gAuR9ANX0j4QoaEz2aizOvAZMMJJJHFyzsf6z QhHa5ULpgUsFxwXFv7FAXqSfaeh/HUjXyi0XRt4j1/q5aTR7x2Nj6w5bg5QOcQcz 0pRwcoyFPspnc2Z/wk49yQKLnQJtw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrkeeggddufedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfgjfhfogggtgfesthhqtddtredtjeenucfhrhhomhepffgrnhhi vghlucfuhhgrhhgrfhcuoegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvgeqne cuggftrfgrthhtvghrnhephfdtteefheevuedthedutdeifeegteettdejtdffheduieei jeelteetkeduteehnecukfhppedutdelrdeiiedrudefrddvvdejnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepugdrshesuggrnhhivghlrdhs hhgrhhgrfhdrnhgrmhgv X-ME-Proxy: Received: from tarpaulin.shahaf.local2 (bzq-109-66-13-227.red.bezeqint.net [109.66.13.227]) by mail.messagingengine.com (Postfix) with ESMTPA id 6291E328005D; Sun, 25 Oct 2020 15:54:04 -0400 (EDT) Received: from tarpaulin.shahaf.local2 (localhost [IPv6:::1]) by tarpaulin.shahaf.local2 (Postfix) with ESMTP id 4CK7vZ59f6z1Pd; Sun, 25 Oct 2020 19:54:02 +0000 (UTC) Date: Sun, 25 Oct 2020 19:54:01 +0000 From: Daniel Shahaf To: Oliver Kiddle Cc: Frank Terbeck , zsh-workers@zsh.org Subject: Re: [PATCH] vcs_info: add 'find-deepest' zstyle Message-ID: <20201025195401.3c54c6a2@tarpaulin.shahaf.local2> In-Reply-To: <37168-1603506679.130606@RR8o.26Eg.GGvC> References: <20201023083444.1565608-1-mezin.alexander@gmail.com> <20201023234855.5a0c6290@tarpaulin.shahaf.local2> <87mu0clbw2.fsf@ft.bewatermyfriend.org> <37168-1603506679.130606@RR8o.26Eg.GGvC> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Seq: 47497 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: Oliver Kiddle wrote on Sat, 24 Oct 2020 04:31 +0200: > Long detection times can still very much be a problem. At both home > and work, I use automount and NFS home directories so the NFS server > regularly gets queried for non-existent homes named .git etc. [...] >=20 > I suspect some of this could be avoided by doing something similar to > the find -xdev option to stop searching when a different filesystem is > reached. So you'd like to assume that a single worktree will not cross into nested mount points. I'm not actually sure this is true every time. For instance, if a project's tree is huge and someone works only on part of it but has multiple worktrees for that project, they might use bind mounts for the parts of the tree they never touch; and conversely, people doing in-tree builds might mount ramdisks inside their worktrees to generate the object files and executables in, and then cd into those and expect to still see the info for the enclosing worktree. Whether any of these use-cases is a deal breaker is another question. How about, if cwd is writable (in the access(W_OK) sense), stopping the upwards crawl when reaching a directory that isn't writable? This would typically stop on =C2=AB~/../=C2=BB. > I don't have much use for nested repositories but vcs_info tends to be > more use with git than subversion. +1, primarily because git is much more stateful (e.g., interrupted rebases). Cheers, Daniel