From: Stefan Beller Date: Mon, 12 Nov 2018 18:23:00 GMT Subject: Re: [PATCH 2/9] submodule--helper: prefer strip_suffix() to ends_with() Message-ID: In-Reply-To: <20181112144703.GB7400@sigill.intra.peff.net> On Mon, Nov 12, 2018 at 6:47 AM Jeff King wrote: > > Using strip_suffix() lets us avoid repeating ourselves. It also makes > the handling of "/" a bit less subtle (we strip one less character than > we matched in order to leave it in place, but we can just as easily > include the "/" when we add more path components). > > Signed-off-by: Jeff King This makes sense. Thanks! (This patch caught my attention as it's a submodule thing, but now looking at the rest of the series)