refspec: convert valid_fetch_refspec to use parse_refspec
authorBrandon Williams <bmwill@google.com>
Wed, 16 May 2018 22:57:52 +0000 (15:57 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 May 2018 21:19:42 +0000 (06:19 +0900)
commitc8fa9efe3a8765f44eacc5b0e114053a0297dfff
tree7aa5b896ab8021b31b418d256a0fe5d7c81e0b87
parent6d4c05785946e302e611be9ac1f5ca0b5ada9214
refspec: convert valid_fetch_refspec to use parse_refspec

Convert 'valid_fetch_refspec()' to use the new 'parse_refspec()'
function to only parse a single refspec and eliminate an allocation.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refspec.c
refspec.h