| 38 | } |
| 39 | |
| 40 | static void tmp_objdir_reparent(const char *name UNUSED, |
| 41 | const char *old_cwd, |
| 42 | const char *new_cwd, |
| 43 | void *cb_data) |
| 44 | { |
| 45 | struct tmp_objdir *t = cb_data; |
| 46 | char *path; |
| 47 | |
| 48 | path = reparent_relative_path(old_cwd, new_cwd, |
| 49 | t->path.buf); |
| 50 | strbuf_reset(&t->path); |
| 51 | strbuf_addstr(&t->path, path); |
| 52 | free(path); |
| 53 | } |
| 54 | |
| 55 | int tmp_objdir_destroy(struct tmp_objdir *t) |
| 56 | { |
nothing calls this directly
no test coverage detected