Re: [PATCH v6 1/3] ref-filter: add worktreepath atom
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 24, 2019, 19:27 UTC
- Message-ID
- <xmqqh8dxj1p3.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20190124183235.GA16580@sigill.intra.peff.net>
Jeff King <peff@peff.net> 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.