diff options
author | ZheNing Hu <adlternative@gmail.com> | 2021-04-19 11:28:44 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-04-19 22:08:00 (GMT) |
commit | 22f69a85edf29dba2278b55f14419e4ea48148d2 (patch) | |
tree | 76728ec76cae6f9ebb063efa1b94c15579d04546 /ref-filter.h | |
parent | b0c09ab8796fb736efa432b8e817334f3e5ee75a (diff) | |
download | git-22f69a85edf29dba2278b55f14419e4ea48148d2.zip git-22f69a85edf29dba2278b55f14419e4ea48148d2.tar.gz git-22f69a85edf29dba2278b55f14419e4ea48148d2.tar.bz2 |
ref-filter: get rid of show_ref_array_item
Inlining the exported function `show_ref_array_item()`,
which is not providing the right level of abstraction,
simplifies the API and can unlock improvements at the
former call sites.
Helped-by: René Scharfe <l.s.r@web.de>
Signed-off-by: ZheNing Hu <adlternative@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ref-filter.h')
-rw-r--r-- | ref-filter.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ref-filter.h b/ref-filter.h index 19ea4c4..baf72a7 100644 --- a/ref-filter.h +++ b/ref-filter.h @@ -119,8 +119,6 @@ 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 */ void parse_ref_sorting(struct ref_sorting **sorting_tail, const char *atom); /* Callback function for parsing the sort option */ |