diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-07-13 17:11:19 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-07-13 17:11:19 +0200 |
commit | a58854a0311316a66fda363e83665ab942d81ec6 (patch) | |
tree | eb12a3f0b1e99c55fb7f53eefdd48d5161eca928 /src/path.h | |
parent | f00f005bad3d27bb5c23ae5d7187622b940c5d0e (diff) | |
download | libgit2-cmn/submodule-backslash.tar.gz |
submodule, path: extract slash conversioncmn/submodule-backslash
Extract the backslash-to-slash conversion into a helper function.
Diffstat (limited to 'src/path.h')
-rw-r--r-- | src/path.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/path.h b/src/path.h index 5927a5381..adb76865e 100644 --- a/src/path.h +++ b/src/path.h @@ -591,4 +591,9 @@ extern bool git_path_isvalid( const char *path, unsigned int flags); +/** + * Convert any backslashes into slashes + */ +int git_path_normalize_slashes(git_buf *out, const char *path); + #endif |