Re: [PATCH v2 1/2] path: add a function to check for path suffix
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 13, 2019, 16:42 UTC
- Message-ID
- <xmqqzhkd81ag.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20190813063618.GO20404@szeder.dev>
SZEDER Gábor <szeder.dev@gmail.com> writes:
Show 6 quoted lines
> ... 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.