read-cache: add verify_path_internal()
commit2a1ae649a4c485b833d75cd5bb14b53ff9bae2c6
authorRené Scharfe <l.s.r@web.de>
Thu, 7 Oct 2021 20:31:44 +0000 (7 22:31 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Oct 2021 00:49:39 +0000 (7 17:49 -0700)
treee3819b3c10dfcea75f57a1a3d10cc0a830c56bfc
parentfc5e90b848e07cc3b8b0e590dbd261ee1b40ffb8
read-cache: add verify_path_internal()

Turn verify_path() into an internal function that distinguishes between
valid paths and those with trailing directory separators and rename it
to verify_path_internal().  Provide a wrapper with the old behavior
under the old name.  No functional change intended.  The new function
will be used in the next patch.

Suggested-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
read-cache.c