Re: [PATCH v5 1/1] worktree add: sanitize worktree names
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 12, 2019, 06:32 UTC
- Message-ID
- <xmqqa7i0iow6.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20190311223936.GA24989@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 5 quoted lines
> Another option _is_ to actually make it reversible. I.e., use "%2e" > instead of ".", which would also necessitate replacing "%". I don't know > if that has a huge value for this use-case, but it's a nice property > that two sanitized names can't collide (unless they originally > identical).
Yeah. That is a good property to have.