From: Jeff King Date: Wed, 21 Nov 2018 14:08:54 GMT Subject: Re: [PATCH v2 1/2] ref-filter: add worktree atom Message-ID: <20181121140853.GA10210@sigill.intra.peff.net> In-Reply-To: On Wed, Nov 21, 2018 at 03:05:04PM +0100, Nickolai Belakovski wrote: > I think if we move to making this atom just store worktree path, that > needs to be implemented as a hashmap of refname->wtpath, which would > also solve this string_list issue, correct? Just making sure I'm not > missing something before I submit another patch. string_list has a "util" field, so you actually _can_ use it to create a mapping. I do think a hashmap is a little more obvious. OTOH, the hashmap API is a little tricky; if we are going to add a "strmap" API soon, it may be simpler to just use a string_list now and convert to strmap when it is a available. -Peff