From f2c6fda88624370fda1fc706a0f2ceda7d50d6ab Mon Sep 17 00:00:00 2001 From: Sean Barag Date: Thu, 1 Oct 2020 03:46:13 +0000 Subject: refs: consolidate remote name validation In preparation for a future patch, extract from remote.c a function that validates possible remote names so that its rules can be used consistently in other places. Helped-by: Derrick Stolee Signed-off-by: Sean Barag Signed-off-by: Junio C Hamano --- refspec.h | 1 + 1 file changed, 1 insertion(+) (limited to 'refspec.h') diff --git a/refspec.h b/refspec.h index 8d654e3a3a..ee93196e35 100644 --- a/refspec.h +++ b/refspec.h @@ -60,6 +60,7 @@ void refspec_appendn(struct refspec *rs, const char **refspecs, int nr); void refspec_clear(struct refspec *rs); int valid_fetch_refspec(const char *refspec); +int valid_remote_name(const char *name); struct strvec; /* -- cgit v1.2.3