summaryrefslogtreecommitdiff
path: root/refspec.h
diff options
context:
space:
mode:
authorSean Barag <sean@barag.org>2020-10-01 03:46:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-10-01 05:09:13 (GMT)
commitf2c6fda88624370fda1fc706a0f2ceda7d50d6ab (patch)
tree76a1421ef4a334d6bed9dd455ee1d627bb4c3f2e /refspec.h
parent444825c7c1148c0a38708238467c33ba370c58b2 (diff)
downloadgit-f2c6fda88624370fda1fc706a0f2ceda7d50d6ab.zip
git-f2c6fda88624370fda1fc706a0f2ceda7d50d6ab.tar.gz
git-f2c6fda88624370fda1fc706a0f2ceda7d50d6ab.tar.bz2
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 <stolee@gmail.com> Signed-off-by: Sean Barag <sean@barag.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refspec.h')
-rw-r--r--refspec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/refspec.h b/refspec.h
index 8d654e3..ee93196 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;
/*