MCPcopy Create free account
hub / github.com/git/git / add_file_item

Function add_file_item

add-interactive.c:372–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370};
371
372static void add_file_item(struct string_list *files, const char *name)
373{
374 struct file_item *item = xcalloc(1, sizeof(*item));
375
376 string_list_append(files, name)->util = item;
377}
378
379struct pathname_entry {
380 struct hashmap_entry ent;

Callers 2

collect_changes_cbFunction · 0.85
get_untracked_filesFunction · 0.85

Calls 2

xcallocFunction · 0.85
string_list_appendFunction · 0.70

Tested by

no test coverage detected