diff options
author | Olga Telezhnaya <olyatelezhnaya@gmail.com> | 2018-02-12 08:08:54 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-02-12 15:03:58 -0800 |
commit | d37763b0fd27d3dba79e28db84e28e2fa249f7cc (patch) | |
tree | 06ad8676f62bc481989fbe6cee03926c8ee795a7 | |
parent | 4d892e7d1570a082daec11b553a17013b6e284fc (diff) | |
download | git-d37763b0fd27d3dba79e28db84e28e2fa249f7cc.tar.gz |
ref-filter: make populate_value() internal again
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | ref-filter.c | 2 | ||||
-rw-r--r-- | ref-filter.h | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/ref-filter.c b/ref-filter.c index 857974a1a9..dfa8ac704c 100644 --- a/ref-filter.c +++ b/ref-filter.c @@ -1428,7 +1428,7 @@ static int check_and_fill_for_cat(struct ref_array_item *ref) * Parse the object referred by ref, and grab needed value. * Return 0 if everything was successful, -1 otherwise. */ -int populate_value(struct ref_array_item *ref) +static int populate_value(struct ref_array_item *ref) { void *buf; struct object *obj; diff --git a/ref-filter.h b/ref-filter.h index 4eaf6d0514..115d00288f 100644 --- a/ref-filter.h +++ b/ref-filter.h @@ -174,9 +174,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 in given format. */ int is_atom_used(const struct ref_format *format, const char *atom); |