From: Junio C Hamano Date: Thu, 24 Jan 2019 19:27:36 GMT Subject: Re: [PATCH v6 1/3] ref-filter: add worktreepath atom Message-ID: In-Reply-To: <20190124183235.GA16580@sigill.intra.peff.net> Jeff King writes: > If anything, I'd suggest going in the opposite direction, and teaching > the worktree code a function for looking up a working tree by ref. And > then it can handle its own cache to implement that reverse-mapping > efficiently. Yeah, that's a thought. Then "give me a worktree that checks out this ref" can be asked outside the context of for-each-ref and friends, which is a big plus.