Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Sep 16, 2012

  1. test-string-list.c: Fix some sparse warnings

    In particular, sparse complains as follows:
    
            SP test-string-list.c
        test-string-list.c:10:6: warning: symbol 'parse_string_list' was not \
            declared. Should it be static?
        test-string-list.c:18:6: warning: symbol 'write_list' was not \
            declared. Should it be static?
        test-string-list.c:25:6: warning: symbol 'write_list_compact' was not \
            declared. Should it be static?
        test-string-list.c:38:5: warning: symbol 'prefix_cb' was not \
            declared. Should it be static?
    
    In order to suppress the warnings, since the above symbols do not
    need more than file scope, we simply include the static modifier
    in their declaration.
    
    Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
    authored September 15, 2012 gitster committed September 15, 2012

Sep 12, 2012

  1. Michael Haggerty

    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>
    authored September 12, 2012 gitster committed September 12, 2012
  2. Michael Haggerty

    string_list: add a new function, string_list_remove_duplicates()

    Add a function that deletes duplicate entries from a sorted
    string_list.
    
    Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
    authored September 12, 2012 gitster committed September 12, 2012
  3. Michael Haggerty

    string_list: add a new function, filter_string_list()

    This function allows entries that don't match a specified criterion to
    be discarded from a string_list while preserving the order of the
    remaining entries.
    
    Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
    authored September 12, 2012 gitster committed September 12, 2012
  4. Michael Haggerty

    string_list: add two new functions for splitting strings

    Add two new functions, string_list_split() and
    string_list_split_in_place().  These split a string into a string_list
    on a separator character.  The first makes copies of the substrings
    (leaving the input string untouched) and the second splits the
    original string in place, overwriting the separator characters with
    NULs and referring to the original string's memory.
    
    These functions are similar to the strbuf_split_*() functions except
    that they work with the more powerful string_list interface.
    
    Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
    authored September 12, 2012 gitster committed September 12, 2012
Something went wrong with that request. Please try again.