| 316 | } |
| 317 | |
| 318 | void strbuf_add_real_path(struct strbuf *sb, const char *path) |
| 319 | { |
| 320 | if (sb->len) { |
| 321 | struct strbuf resolved = STRBUF_INIT; |
| 322 | strbuf_realpath(&resolved, path, 1); |
| 323 | strbuf_addbuf(sb, &resolved); |
| 324 | strbuf_release(&resolved); |
| 325 | } else |
| 326 | strbuf_realpath(sb, path, 1); |
| 327 | } |
no test coverage detected