[PATCH RFC 19/24] ref-filter: make populate_value internal again
- From
Olga Telezhnaya <olyatelezhnaya@gmail.com>
- Date
- Jan 26, 2018, 19:43 UTC
- Message-ID
- <0102016133ff3b4c-a68ff848-85c3-40e0-acf1-3539e263bcd2-000000@eu-west-1.amazonses.com>
- In-Reply-To
- <0102016133ff3a86-44d354ec-13c6-4c38-bc75-1ba4422db5a7-000000@eu-west-1.amazonses.com>
Remove populate_value from header file. We needed that for interim step, now it could be returned back.
Signed-off-by: Olga Telezhnaia <olyatelezhnaya@gmail.com> Mentored-by: Christian Couder <christian.couder@gmail.com> Mentored by: Jeff King <peff@peff.net> --- ref-filter.c | 2 +- ref-filter.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/ref-filter.c b/ref-filter.c index 4d0d4f081227d..c3a5c3897295f 100644 --- a/ref-filter.c +++ b/ref-filter.c @@ -1476,7 +1476,7 @@ static int check_and_fill_for_cat(struct ref_array_item *ref) /* * Parse the object referred by ref, and grab needed value. */ -int populate_value(struct ref_array_item *ref) +static int populate_value(struct ref_array_item *ref) { int i; diff --git a/ref-filter.h b/ref-filter.h index d8064086f36a9..285a2311f6cc9 100644 --- a/ref-filter.h +++ b/ref-filter.h @@ -172,9 +172,6 @@ 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); - /* Search for atom "rest" in given format. */ int is_rest_atom_used(const struct ref_format *format); -- https://github.com/git/git/pull/452