summaryrefslogtreecommitdiff
path: root/path-list.h
Commit message (Collapse)AuthorAgeFilesLines
* path-list: add functions to work with unsorted listsJohannes Schindelin2008-03-011-1/+7
| | | | | | | | | | | | | | 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: always free strdup'ed pathsRené Scharfe2007-08-151-1/+1
| | | | | | | | | | Always free .paths if .strdup_paths is set, no matter if the parameter free_items is set or not, plugging a minor memory leak. And to clarify the meaning of the flag, rename it to free_util, since it now only affects the freeing of the .util field. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* Make macros to prevent double-inclusion in headers consistent.Junio C Hamano2007-04-291-3/+3
| | | | Signed-off-by: Junio C Hamano <junkio@cox.net>
* Extract helper bits from c-merge-recursive workJohannes Schindelin2006-07-261-0/+22
This backports the pieces that are not uncooked from the merge-recursive WIP we have seen earlier, to be used in git-mv rewritten in C. Signed-off-by: Junio C Hamano <junkio@cox.net>