diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2018-06-05 19:54:38 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-06-11 10:11:29 -0700 |
commit | dc0642218306190a2d284f47f75d71aeeaa34d02 (patch) | |
tree | 451dfbc97aa5805f5287fd5b06caf82f700b7036 /refspec.h | |
parent | 6c301adb0a43bceef65e78df6936bd03a4d1933b (diff) | |
download | git-dc0642218306190a2d284f47f75d71aeeaa34d02.tar.gz |
refspec: s/refspec_item_init/&_or_die/g
Rename the refspec_item_init() function introduced in
6d4c057859 ("refspec: introduce struct refspec", 2018-05-16) to
refspec_item_init_or_die().
This follows the convention of other *_or_die() functions, and is done
in preparation for making it a wrapper for a non-fatal variant.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refspec.h')
-rw-r--r-- | refspec.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -32,7 +32,8 @@ struct refspec { int fetch; }; -void refspec_item_init(struct refspec_item *item, const char *refspec, int fetch); +void refspec_item_init_or_die(struct refspec_item *item, const char *refspec, + int fetch); void refspec_item_clear(struct refspec_item *item); void refspec_init(struct refspec *rs, int fetch); void refspec_append(struct refspec *rs, const char *refspec); |