summaryrefslogtreecommitdiff
path: root/src/win32/posix.h
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/win32/posix.h
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/win32/posix.h')
-rw-r--r--src/win32/posix.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/win32/posix.h b/src/win32/posix.h
index 31ee7201c..3b5bff806 100644
--- a/src/win32/posix.h
+++ b/src/win32/posix.h
@@ -21,5 +21,6 @@ extern int p_unlink(const char *path);
extern int p_lstat(const char *file_name, struct stat *buf);
extern int p_readlink(const char *link, char *target, size_t target_len);
extern int p_hide_directory__w32(const char *path);
+extern int p_realpath(const char *orig_path, char *buffer);
#endif