string_list: add a function string_list_longest_prefix()
authorMichael Haggerty <mhagger@alum.mit.edu>
Wed, 12 Sep 2012 14:04:46 +0000 (16:04 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Sep 2012 18:43:25 +0000 (11:43 -0700)
commitf103f95b11d087f07c0c48bf784cd9197e18f203
tree97c404425b942675ffedece855f58b5132cd55e5
parent31d5451eed2677531c80177ff9dc8f5285f5a187
string_list: add a function string_list_longest_prefix()

Add a function that finds the longest string from a string_list that
is a prefix of a given string.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/technical/api-string-list.txt
string-list.c
string-list.h
t/t0063-string-list.sh
test-string-list.c