diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-03-08 00:12:33 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-03-08 00:24:21 -0800 |
commit | 5ad6b0252b4fff02ac8516b2ea5e3e7330dcc76f (patch) | |
tree | b230fb2d94d62b157fd5b2d5394d17578d8a8a8f /string-list.h | |
parent | abd2bde78bd994166900290434a2048e660dabed (diff) | |
parent | 8321c56b6bae25a2d70790f452df894be536b32c (diff) | |
download | git-5ad6b0252b4fff02ac8516b2ea5e3e7330dcc76f.tar.gz |
Adjust js/remote-improvements and db/refspec-wildcard-in-the-middle
The latter topic changes the definition of how refspec's src and dst side
is stored in-core; it used to be that the asterisk for pattern was
omitted, but now it is included. The former topic handcrafts an old style
refspec to feed the refspec matching machinery that lacks the asterisk and
triggers an error.
This resolves the semantic clash between the two topics early before they
need to be merged to integration branches.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'string-list.h')
-rw-r--r-- | string-list.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/string-list.h b/string-list.h index d32ba05202..14bbc477de 100644 --- a/string-list.h +++ b/string-list.h @@ -20,6 +20,11 @@ void string_list_clear(struct string_list *list, int free_util); typedef void (*string_list_clear_func_t)(void *p, const char *str); void string_list_clear_func(struct string_list *list, string_list_clear_func_t clearfunc); +/* Use this function to iterate over each item */ +typedef int (*string_list_each_func_t)(struct string_list_item *, void *); +int for_each_string_list(string_list_each_func_t, + struct string_list *list, void *cb_data); + /* Use these functions only on sorted lists: */ int string_list_has_string(const struct string_list *list, const char *string); int string_list_find_insert_index(const struct string_list *list, const char *string, |