#include "git-compat-util.h" #include "abspath.h" #include "chdir-notify.h" #include "list.h" #include "path.h" #include "strbuf.h" #include "trace.h" struct chdir_notify_entry { … }; static LIST_HEAD(chdir_notify_entries); void chdir_notify_register(const char *name, chdir_notify_callback cb, void *data) { … } static void reparent_cb(const char *name, const char *old_cwd, const char *new_cwd, void *data) { … } void chdir_notify_reparent(const char *name, char **path) { … } int chdir_notify(const char *new_cwd) { … } char *reparent_relative_path(const char *old_cwd, const char *new_cwd, const char *path) { … }