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

Function chdir_notify_unregister

chdir-notify.c:28–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void chdir_notify_unregister(const char *name, chdir_notify_callback cb,
29 void *data)
30{
31 struct list_head *pos, *p;
32
33 list_for_each_safe(pos, p, &chdir_notify_entries) {
34 struct chdir_notify_entry *e =
35 list_entry(pos, struct chdir_notify_entry, list);
36
37 if (e->cb != cb || e->data != data || !e->name != !name ||
38 (e->name && strcmp(e->name, name)))
39 continue;
40
41 list_del(pos);
42 free(e);
43 }
44}
45
46static void reparent_cb(const char *name,
47 const char *old_cwd,

Callers 3

tmp_objdir_destroyFunction · 0.85
odb_source_loose_freeFunction · 0.85
odb_source_files_freeFunction · 0.85

Calls 1

list_delFunction · 0.85

Tested by

no test coverage detected