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

Function string_list_append

string-list.c:218–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218struct string_list_item *string_list_append(struct string_list *list,
219 const char *string)
220{
221 return string_list_append_nodup(
222 list,
223 list->strdup_strings ? xstrdup(string) : (char *)string);
224}
225
226/*
227 * Encapsulate the compare function pointer because ISO C99 forbids

Callers 15

add_remote_urlFunction · 0.70
check_repo_formatFunction · 0.70
receive_packfile_urisFunction · 0.70
refspec_find_all_matchesFunction · 0.70
pretty_print_cmdnamesFunction · 0.70
list_all_main_cmdsFunction · 0.70
list_all_other_cmdsFunction · 0.70
list_cmds_by_categoryFunction · 0.70
merge_submoduleFunction · 0.70

Calls 2

string_list_append_nodupFunction · 0.85
xstrdupFunction · 0.85

Tested by 10

refspec_find_all_matchesFunction · 0.56
cmd_delete_refsFunction · 0.40
print_sorted_commit_idsFunction · 0.40
test_finishedFunction · 0.40
test_failedFunction · 0.40
testsuiteFunction · 0.40
cmd__path_utilsFunction · 0.40