convert some config callbacks to parse_config_key
[gitweb.git] / Documentation / technical / api-string-list.txt
index 618400d803b062e7c5d4d3421658045c933ee4fb..20be3488349c2ddbafbd90c0200f2a7d3862a12f 100644 (file)
@@ -38,7 +38,8 @@ member (you need this if you add things later) and you should set the
   `unsorted_string_list_delete_item`.
 
 . Can remove items not matching a criterion from a sorted or unsorted
-  list using `filter_string_list`.
+  list using `filter_string_list`, or remove empty strings using
+  `string_list_remove_empty_items`.
 
 . Finally it should free the list using `string_list_clear`.
 
@@ -75,6 +76,12 @@ Functions
        to be deleted.  Preserve the order of the items that are
        retained.
 
+`string_list_remove_empty_items`::
+
+       Remove any empty strings from the list.  If free_util is true,
+       call free() on the util members of any items that have to be
+       deleted.  Preserve the order of the items that are retained.
+
 `print_string_list`::
 
        Dump a string_list to stdout, useful mainly for debugging purposes. It