copies root part from remaining to resolved, canonicalizing it on the way */
| 52 | |
| 53 | /* copies root part from remaining to resolved, canonicalizing it on the way */ |
| 54 | static void get_root_part(struct strbuf *resolved, struct strbuf *remaining) |
| 55 | { |
| 56 | int offset = offset_1st_component(remaining->buf); |
| 57 | |
| 58 | strbuf_reset(resolved); |
| 59 | strbuf_add(resolved, remaining->buf, offset); |
| 60 | #ifdef GIT_WINDOWS_NATIVE |
| 61 | convert_slashes(resolved->buf); |
| 62 | #endif |
| 63 | strbuf_remove(remaining, 0, offset); |
| 64 | } |
| 65 | |
| 66 | /* We allow "recursive" symbolic links. Only within reason, though. */ |
| 67 | #ifndef MAXSYMLINKS |
no test coverage detected