summaryrefslogtreecommitdiff
path: root/src/fileops.h
diff options
context:
space:
mode:
authorRomain Geissler <romain.geissler@gmail.com>2011-06-03 23:44:38 +0200
committerRomain Geissler <romain.geissler@gmail.com>2011-06-04 00:00:28 +0200
commitf2e6b8776e8d9f65b3edf3e3bc1ff22a495170ea (patch)
treeb49f4785c71fd5b877319de1cb0a6721e4860295 /src/fileops.h
parent1549cba9a4f7d9ad79441b748937bbe606ba79c1 (diff)
downloadlibgit2-f2e6b8776e8d9f65b3edf3e3bc1ff22a495170ea.tar.gz
Repository: Added some util functions that we'll need to discover repository path.
retrieve_device returns the file device for a given path (so that we can detect device change while walking through parent directories). abspath returns a canonicalized path, symbolic link free. retrieive_ceiling_directories_offset returns the biggest path offset that path match in the ceiling directory list (so that we can stop at ceiling directories).
Diffstat (limited to 'src/fileops.h')
-rw-r--r--src/fileops.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fileops.h b/src/fileops.h
index 23f16542b..4a86e1c63 100644
--- a/src/fileops.h
+++ b/src/fileops.h
@@ -198,6 +198,8 @@ int gitfo_prettify_dir_path(char *buffer_out, size_t size, const char *path, con
*/
int gitfo_prettify_file_path(char *buffer_out, size_t size, const char *path, const char *base_path);
+void gitfo_posixify_path(char *path);
+
int gitfo_retrieve_path_root_offset(const char *path);
#endif /* INCLUDE_fileops_h__ */