* Use this to get an absolute path from a relative one. If you want * to resolve links, you should use strbuf_realpath. */
| 250 | * to resolve links, you should use strbuf_realpath. |
| 251 | */ |
| 252 | const char *absolute_path(const char *path) |
| 253 | { |
| 254 | static struct strbuf sb = STRBUF_INIT; |
| 255 | strbuf_reset(&sb); |
| 256 | strbuf_add_absolute_path(&sb, path); |
| 257 | return sb.buf; |
| 258 | } |
| 259 | |
| 260 | char *absolute_pathdup(const char *path) |
| 261 | { |