path: root/ref-filter.h
diff options
authorJunio C Hamano <>2020-05-08 21:25:04 (GMT)
committerJunio C Hamano <>2020-05-08 21:25:04 (GMT)
commit6de1630898838b62b97617323a07eb6fe9618a7e (patch)
treefd5c44e8d439d57b02cb93f36b57a65ada759d92 /ref-filter.h
parent1260f819aa757c184b2d7afd6f27ad48f625677b (diff)
parent7c5045fc180ed09ed4cb5065955acddc1dd50163 (diff)
Merge branch 'jk/for-each-ref-multi-key-sort-fix'
"git branch" and other "for-each-ref" variants accepted multiple --sort=<key> options in the increasing order of precedence, but it had a few breakages around "--ignore-case" handling, and tie-breaking with the refname, which have been fixed. * jk/for-each-ref-multi-key-sort-fix: ref-filter: apply fallback refname sort only after all user sorts ref-filter: apply --ignore-case to all sorting keys
Diffstat (limited to 'ref-filter.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/ref-filter.h b/ref-filter.h
index 64330e9..8ecc33c 100644
--- a/ref-filter.h
+++ b/ref-filter.h
@@ -114,6 +114,8 @@ void ref_array_clear(struct ref_array *array);
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);
+/* Set the ignore_case flag for all elements of a sorting list */
+void ref_sorting_icase_all(struct ref_sorting *sorting, int flag);
/* Based on the given format and quote_style, fill the strbuf */
int format_ref_array_item(struct ref_array_item *info,
const struct ref_format *format,