Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jan 10, 2010
  1. @gitster

    string-list: rename the include guard to STRING_LIST_H

    Thiago Farina authored gitster committed
    Signed-off-by: Thiago Farina <>
    Signed-off-by: Junio C Hamano <>
Commits on Feb 27, 2009
  1. @jaysoffian @gitster

    string-list: new for_each_string_list() function

    jaysoffian authored gitster committed
    Add a convenience function for iterating over a string_list's items via
    a callback.
    Signed-off-by: Jay Soffian <>
    Signed-off-by: Junio C Hamano <>
Commits on Feb 8, 2009
  1. @gitster

    Add find_insert_index, insert_at_index and clear_func functions to st…

    Marius Storm-Olsen authored gitster committed
    string_list_find_insert_index() and string_list_insert_at_index()
    enables you to see if an item is in the string_list, and to
    insert at the appropriate index in the list, if not there.
    This is usefull if you need to manipulate an existing item,
    if present, and insert a new item if not.
    Future mailmap code will use this construct to enable
    complex (old_name, old_email) -> (new_name, new_email)
    The string_list_clear_func() allows to call a custom
    cleanup function on each item in a string_list, which is
    useful is the util member points to a complex structure.
    Signed-off-by: Marius Storm-Olsen <>
    Signed-off-by: Junio C Hamano <>
Commits on Jul 22, 2008
  1. @dscho @gitster

    Rename path_list to string_list

    dscho authored gitster committed
    The name path_list was correct for the first usage of that data structure,
    but it really is a general-purpose string list.
    $ perl -i -pe 's/path-list/string-list/g' $(git grep -l path-list)
    $ perl -i -pe 's/path_list/string_list/g' $(git grep -l path_list)
    $ git mv path-list.h string-list.h
    $ git mv path-list.c string-list.c
    $ perl -i -pe 's/has_path/has_string/g' $(git grep -l has_path)
    $ perl -i -pe 's/path/string/g' string-list.[ch]
    $ git mv Documentation/technical/api-path-list.txt \
    $ perl -i -pe 's/strdup_paths/strdup_strings/g' $(git grep -l strdup_paths)
    ... and then fix all users of string-list to access the member "string"
    instead of "path".
    Documentation/technical/api-string-list.txt needed some rewrapping, too.
    Signed-off-by: Johannes Schindelin <>
    Signed-off-by: Junio C Hamano <>
Something went wrong with that request. Please try again.