From: Olga Telezhnaya Date: Fri, 26 Jan 2018 19:43:40 GMT Subject: [PATCH RFC 10/24] ref-filter: make populate_value global Message-ID: <0102016133ff3b05-802b1468-13cf-453f-801f-d5530f2f94ac-000000@eu-west-1.amazonses.com> In-Reply-To: <0102016133ff3a86-44d354ec-13c6-4c38-bc75-1ba4422db5a7-000000@eu-west-1.amazonses.com> Make function global for further using in cat-file. In the end of patch series this function becomes internal again, so this is a part of middle step. cat-file would use more general functions further. Signed-off-by: Olga Telezhnaia Mentored-by: Christian Couder Mentored by: Jeff King --- ref-filter.c | 2 +- ref-filter.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ref-filter.c b/ref-filter.c index 95c85009f1f58..e69dd1ff5091f 100644 --- a/ref-filter.c +++ b/ref-filter.c @@ -1454,7 +1454,7 @@ static void need_object(struct ref_array_item *ref) { /* * Parse the object referred by ref, and grab needed value. */ -static int populate_value(struct ref_array_item *ref) +int populate_value(struct ref_array_item *ref) { int i; diff --git a/ref-filter.h b/ref-filter.h index 7aaf82799ec2d..6373167aaacd7 100644 --- a/ref-filter.h +++ b/ref-filter.h @@ -176,4 +176,7 @@ void setup_ref_filter_porcelain_msg(void); void pretty_print_ref(const char *name, const unsigned char *sha1, const struct ref_format *format); +/* Fill the values of request and prepare all data for final string creation */ +int populate_value(struct ref_array_item *ref); + #endif /* REF_FILTER_H */ -- https://github.com/git/git/pull/452