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

Function chdir_notify_register

chdir-notify.c:17–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15static LIST_HEAD(chdir_notify_entries);
16
17void chdir_notify_register(const char *name,
18 chdir_notify_callback cb,
19 void *data)
20{
21 struct chdir_notify_entry *e = xmalloc(sizeof(*e));
22 e->name = name;
23 e->cb = cb;
24 e->data = data;
25 list_add_tail(&e->list, &chdir_notify_entries);
26}
27
28void chdir_notify_unregister(const char *name, chdir_notify_callback cb,
29 void *data)

Callers 5

set_git_dirFunction · 0.85
tmp_objdir_createFunction · 0.85
chdir_notify_reparentFunction · 0.85
odb_source_loose_newFunction · 0.85
odb_source_files_newFunction · 0.85

Calls 2

list_add_tailFunction · 0.85
xmallocFunction · 0.70

Tested by

no test coverage detected