From: Junio C Hamano Date: Tue, 13 Aug 2019 16:42:31 GMT Subject: Re: [PATCH v2 1/2] path: add a function to check for path suffix Message-ID: In-Reply-To: <20190813063618.GO20404@szeder.dev> SZEDER Gábor writes: > ... And that function must be able to handle multiple path > components, becase there is this callsite: > > exec-cmd.c: !(prefix = strip_path_suffix(executable_dirname, GIT_EXEC_PATH)) && > > and the build sets '-DGIT_EXEC_PATH="libexec/git-core"' by default. OK, that answers my earlier question. We do want to support such a caller with one or more components at the end. Thanks.