From f21ea69d945f958704f2fe143c2638ecae6e0d12 Mon Sep 17 00:00:00 2001 From: Meet Soni Date: Tue, 4 Feb 2025 19:58:52 +0530 Subject: remote: relocate valid_remote_name Move the `valid_remote_name()` function from the refspec subsystem to the remote subsystem to better align with the separation of concerns. Signed-off-by: Meet Soni Signed-off-by: Junio C Hamano --- remote.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'remote.h') diff --git a/remote.h b/remote.h index a19353f689..e4ab03104b 100644 --- a/remote.h +++ b/remote.h @@ -463,4 +463,6 @@ void apply_push_cas(struct push_cas_option *, struct remote *, struct ref *); char *relative_url(const char *remote_url, const char *url, const char *up_path); +int valid_remote_name(const char *name); + #endif -- cgit v1.2.3