]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/credential-store: move is_rfc3986_unreserved to url.[ch]
authorAdrian Ratiu <adrian.ratiu@collabora.com>
Sat, 20 Dec 2025 10:15:24 +0000 (12:15 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 21 Dec 2025 02:36:01 +0000 (11:36 +0900)
commit5e4f669c68c15d5c055c19806dae7d34ea2548f8
tree45ec047ad02b9f3d4e7e2c4ac4463648db2edbc8
parent630839c7d2ba49febef88daadf5a3385e5474fe9
builtin/credential-store: move is_rfc3986_unreserved to url.[ch]

is_rfc3986_unreserved() was moved to credential-store.c and was made
static by f89854362c (credential-store: move related functions to
credential-store file, 2023-06-06) under a correct assumption, at the
time, that it was the only place using it.

However now we need it to apply URL-encoding to submodule names when
constructing gitdir paths, to avoid conflicts, so bring it back as a
public function exposed via url.h, instead of the old helper path
(strbuf), which has nothing to do with 3986 encoding/decoding anymore.

This function will be used in subsequent commits which do the encoding.

Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/credential-store.c
url.c
url.h