summaryrefslogtreecommitdiff
path: root/src/unix
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-07-04 20:05:11 +0200
committerVicent Marti <tanoku@gmail.com>2011-07-05 02:06:26 +0200
commit5ad739e8328c665b629e2285abaec7e12ea8397c (patch)
treebe0677bcaeaa318bf20b8fa765e3bf478fb5bc55 /src/unix
parentf79026b4912bcd2336667f4c1663c06e233f0b32 (diff)
downloadlibgit2-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.h2
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