diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-07-04 20:05:11 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-07-05 02:06:26 +0200 |
commit | 5ad739e8328c665b629e2285abaec7e12ea8397c (patch) | |
tree | be0677bcaeaa318bf20b8fa765e3bf478fb5bc55 /src/unix | |
parent | f79026b4912bcd2336667f4c1663c06e233f0b32 (diff) | |
download | libgit2-5ad739e8328c665b629e2285abaec7e12ea8397c.tar.gz |
fileops: Drop `git_fileops_prettify_path`
The old `git_fileops_prettify_path` has been replaced with
`git_path_prettify`. This is a much simpler method that uses the OS's
`realpath` call to obtain the full path for directories and resolve
symlinks.
The `realpath` syscall is the original POSIX call in Unix system and
an emulated version under Windows using the Windows API.
Diffstat (limited to 'src/unix')
-rw-r--r-- | src/unix/posix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix/posix.h b/src/unix/posix.h index ab98c451d..079373919 100644 --- a/src/unix/posix.h +++ b/src/unix/posix.h @@ -9,6 +9,6 @@ #define p_unlink(p) unlink(p) #define p_mkdir(p,m) mkdir(p, m) #define p_fsync(fd) fsync(fd) -#define p_realpath(p, r) realpath(p, r) +#define p_realpath(p, po) realpath(p, po) #endif |