MCPcopy Index your code
hub / github.com/git/git / string_list_append_nodup

Function string_list_append_nodup

string-list.c:207–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207struct string_list_item *string_list_append_nodup(struct string_list *list,
208 char *string)
209{
210 struct string_list_item *retval;
211 ALLOC_GROW(list->items, list->nr + 1, list->alloc);
212 retval = &list->items[list->nr++];
213 retval->string = string;
214 retval->util = NULL;
215 return retval;
216}
217
218struct string_list_item *string_list_append(struct string_list *list,
219 const char *string)

Callers 15

configset_add_valueFunction · 0.85
get_packFunction · 0.85
do_fetch_pack_v2Function · 0.85
refspec_find_all_matchesFunction · 0.85
append_similar_refFunction · 0.85
path_msgFunction · 0.85
parse_one_symref_infoFunction · 0.85
shortlogFunction · 0.85
enable_ref_display_notesFunction · 0.85
load_display_notesFunction · 0.85
set_optionFunction · 0.85

Calls

no outgoing calls

Tested by 2

refspec_find_all_matchesFunction · 0.68