Re: [PATCH 05/35] refspec: convert valid_fetch_refspec to use parse_refspec

2018-05-15 Thread Junio C Hamano
Brandon Williams writes: > Convert 'valid_fetch_refspec()' to use the new 'parse_refspec()' > function to only parse a single refspec an eliminate an allocation. s/an/and/, perhaps? > -int valid_fetch_refspec(const char *fetch_refspec_str) > -{ > - struct refspec_item *refspec; > - > -

[PATCH 05/35] refspec: convert valid_fetch_refspec to use parse_refspec

2018-05-14 Thread Brandon Williams
Convert 'valid_fetch_refspec()' to use the new 'parse_refspec()' function to only parse a single refspec an eliminate an allocation. Signed-off-by: Brandon Williams --- refspec.c | 17 - refspec.h | 3 ++- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/refspec.