]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/update-ref.c
update-ref.c: extract a new function, parse_refname()
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 7 Apr 2014 13:48:00 +0000 (15:48 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Apr 2014 19:09:12 +0000 (12:09 -0700)
commited410e611dc39dc7e845f27a660b76b7d0ecbab6
tree93fe9227dec9246611edb98e83339bb14420348f
parent2f57736002e6a774ce5ab53a15a631da8299f8b4
update-ref.c: extract a new function, parse_refname()

There is no reason to obscure the fact that parse_first_arg() always
parses refnames.  Form the new function by combining parse_first_arg()
and update_store_ref_name().

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/update-ref.c