summaryrefslogtreecommitdiff
path: root/ref-filter.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-05-08 06:59:18 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-08 06:59:18 (GMT)
commitb7da73ac8b953afd788e096b5b216e3bd9845659 (patch)
tree5230b490ab355c93f807eba61e272d211a3af7a0 /ref-filter.h
parent0c7ecb7c311d393db41f4d81a113ffc5f3b4498f (diff)
parente339611b12e68d4658252bf4c557e58dea6e4c18 (diff)
downloadgit-b7da73ac8b953afd788e096b5b216e3bd9845659.zip
git-b7da73ac8b953afd788e096b5b216e3bd9845659.tar.gz
git-b7da73ac8b953afd788e096b5b216e3bd9845659.tar.bz2
Merge branch 'ot/libify-get-ref-atom-value'
Code restructuring, in preparation for further work. * ot/libify-get-ref-atom-value: ref-filter: libify get_ref_atom_value() ref-filter: add return value to parsers ref-filter: change parsing function error handling ref-filter: add return value && strbuf to handlers ref-filter: start adding strbufs with errors ref-filter: add shortcut to work with strbufs
Diffstat (limited to 'ref-filter.h')
-rw-r--r--ref-filter.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/ref-filter.h b/ref-filter.h
index 76cf87c..85c8ebc 100644
--- a/ref-filter.h
+++ b/ref-filter.h
@@ -110,9 +110,10 @@ int verify_ref_format(struct ref_format *format);
/* Sort the given ref_array as per the ref_sorting provided */
void ref_array_sort(struct ref_sorting *sort, struct ref_array *array);
/* Based on the given format and quote_style, fill the strbuf */
-void format_ref_array_item(struct ref_array_item *info,
- const struct ref_format *format,
- struct strbuf *final_buf);
+int format_ref_array_item(struct ref_array_item *info,
+ const struct ref_format *format,
+ struct strbuf *final_buf,
+ struct strbuf *error_buf);
/* Print the ref using the given format and quote_style */
void show_ref_array_item(struct ref_array_item *info, const struct ref_format *format);
/* Parse a single sort specifier and add it to the list */