]> git.ipfire.org Git - thirdparty/git.git/commit - refspec.h
refspec: add back a refspec_item_init() function
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 5 Jun 2018 19:54:39 +0000 (19:54 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Jun 2018 17:11:31 +0000 (10:11 -0700)
commitc495fd3d1b4b6b395346a8832edbea25f0d60ee7
tree115691e84ad21446a3b36b9ff4f10afbdc4f3922
parentdc0642218306190a2d284f47f75d71aeeaa34d02
refspec: add back a refspec_item_init() function

Re-add the non-fatal version of refspec_item_init_or_die() renamed
away in an earlier change to get a more minimal diff. This should be
used by callers that have their own error handling.

This new function could be marked "static" since nothing outside of
refspec.c uses it, but expecting future use of it, let's make it
available to other users.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refspec.c
refspec.h