diff options
| author | unknown <Romain@.(none)> | 2011-06-03 20:47:56 +0200 |
|---|---|---|
| committer | Romain Geissler <romain.geissler@gmail.com> | 2011-06-03 21:04:02 +0200 |
| commit | 26a98ec8a2ebd6d54ad12466552442fde1c6a9d0 (patch) | |
| tree | fa75d50a47f5e135b34b95ba7d5742ecbca62942 /src/fileops.h | |
| parent | bb88da7f90f23a89ebae58bd90d9859feec84530 (diff) | |
| download | libgit2-26a98ec8a2ebd6d54ad12466552442fde1c6a9d0.tar.gz | |
Fileops: Added a fourth argument to the path prettifying functions to use an alternate basepath.
Fixed a Windows TO-DO in the prettifying functions.
Diffstat (limited to 'src/fileops.h')
| -rw-r--r-- | src/fileops.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileops.h b/src/fileops.h index d271f312b..1b70fc836 100644 --- a/src/fileops.h +++ b/src/fileops.h @@ -170,7 +170,7 @@ extern int gitfo_getcwd(char *buffer_out, size_t size); * - GIT_SUCCESS on success; * - GIT_ERROR when the input path is invalid or escapes the current directory. */ -int gitfo_prettify_dir_path(char *buffer_out, size_t size, const char *path); +int gitfo_prettify_dir_path(char *buffer_out, size_t size, const char *path, const char *base_path); /** * Clean up a provided absolute or relative file path. @@ -193,7 +193,7 @@ int gitfo_prettify_dir_path(char *buffer_out, size_t size, const char *path); * - GIT_SUCCESS on success; * - GIT_ERROR when the input path is invalid or escapes the current directory. */ -int gitfo_prettify_file_path(char *buffer_out, size_t size, const char *path); +int gitfo_prettify_file_path(char *buffer_out, size_t size, const char *path, const char *base_path); int gitfo_retrieve_path_root_offset(const char *path); |
