Code

path-list: add functions to work with unsorted lists
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Fri, 29 Feb 2008 01:44:56 +0000 (01:44 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 1 Mar 2008 09:51:44 +0000 (01:51 -0800)
commit363d59df1a773039d0c69ad8c3109a56bb1b491d
tree3ab55d630a49bbc31ed87e847388bda83268af35
parent6d21667206c4c2b10aad99eca1530a4f17c4e61d
path-list: add functions to work with unsorted lists

Up to now, path-lists were sorted at all times.  But sometimes it
is much more convenient to build the list and sort it at the end,
or sort it not at all.

Add path_list_append() and sort_path_list() to allow that.

Also, add the unsorted_path_list_has_path() function, to do a linear
search.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
path-list.c
path-list.h