From: Junio C Hamano Date: Fri, 21 Sep 2012 18:17:00 +0000 (-0700) Subject: Merge branch 'mh/fetch-filter-refs' X-Git-Tag: v1.8.0-rc0~30 X-Git-Url: https://www.git.lorimer.id.au/gitweb.git/diff_plain/16eed7c9938a65022010c3d95ada911b2fd46d25?hp=36d1f3d1313af490a4c7dc963f34a2c9a92556d6 Merge branch 'mh/fetch-filter-refs' Finishing touch to update documentation of string-list to make sure the earlier rewrite of ref-list match logic that depends on its sort order will not get broken. * mh/fetch-filter-refs: string_list API: document what "sorted" means --- diff --git a/Documentation/technical/api-string-list.txt b/Documentation/technical/api-string-list.txt index 155ac8cb10..94d7a2bd99 100644 --- a/Documentation/technical/api-string-list.txt +++ b/Documentation/technical/api-string-list.txt @@ -1,8 +1,9 @@ string-list API =============== -The string_list API offers a data structure and functions to handle sorted -and unsorted string lists. +The string_list API offers a data structure and functions to handle +sorted and unsorted string lists. A "sorted" list is one whose +entries are sorted by string value in `strcmp()` order. The 'string_list' struct used to be called 'path_list', but was renamed because it is not specific to paths. @@ -143,7 +144,7 @@ write `string_list_insert(...)->util = ...;`. `sort_string_list`:: - Make an unsorted list sorted. + Sort the list's entries by string value in `strcmp()` order. `unsorted_string_list_has_string`::