]> git.ipfire.org Git - thirdparty/git.git/commit - refspec.c
refs: consolidate remote name validation
authorSean Barag <sean@barag.org>
Thu, 1 Oct 2020 03:46:13 +0000 (03:46 +0000)
committerJunio C Hamano <gitster@pobox.com>
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 <stolee@gmail.com>
Signed-off-by: Sean Barag <sean@barag.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/remote.c
refspec.c
refspec.h