]> git.ipfire.org Git - thirdparty/git.git/commit - string-list.h
string-list: allow case-insensitive string list
authorJunio C Hamano <gitster@pobox.com>
Mon, 7 Jan 2013 20:24:55 +0000 (12:24 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Jan 2013 23:59:32 +0000 (15:59 -0800)
commit8dd5afc926acb9829ebf56e9b78826a5242cd638
treea2c2056604f0c8b6ed711121b4cdccc16fb68dbc
parent7e0651a6302b50db4bac1e65da61c4036cc64d2a
string-list: allow case-insensitive string list

Some string list needs to be searched case insensitively, and for
that to work correctly, the string needs to be sorted case
insensitively from the beginning.

Allow a custom comparison function to be defined on a string list
instance and use it throughout in place of strcmp().

Signed-off-by: Junio C Hamano <gitster@pobox.com>
string-list.c
string-list.h