* Return the real path (i.e., absolute path, with symlinks resolved * and extra slashes removed) equivalent to the specified path. (If * you want an absolute path but don't mind links, use * absolute_path().) Places the resolved realpath in the provided strbuf. * * The directory part of path (i.e., everything up to the last * dir_sep) must denote a valid, existing directory, but the last
| 214 | * NULL on errors (without generating any output). |
| 215 | */ |
| 216 | char *strbuf_realpath(struct strbuf *resolved, const char *path, |
| 217 | int die_on_error) |
| 218 | { |
| 219 | return strbuf_realpath_1(resolved, path, |
| 220 | die_on_error ? REALPATH_DIE_ON_ERROR : 0); |
| 221 | } |
| 222 | |
| 223 | /* |
| 224 | * Just like strbuf_realpath, but allows an arbitrary number of path |