refs: consolidate remote name validation
authorSean Barag <redacted>
Thu, 1 Oct 2020 03:46:13 +0000 (03:46 +0000)
committerJunio C Hamano <redacted>
Thu, 1 Oct 2020 05:09:13 +0000 (22:09 -0700)
commitf2c6fda88624370fda1fc706a0f2ceda7d50d6ab
tree76a1421ef4a334d6bed9dd455ee1d627bb4c3f2e
parent444825c7c1148c0a38708238467c33ba370c58b2
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 <redacted>
Signed-off-by: Sean Barag <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/remote.c
refspec.c
refspec.h
git clone https://git.99rst.org/PROJECT