vendor/libgit2/src/path.h in rugged-0.23.0 vs vendor/libgit2/src/path.h in rugged-0.23.1
- old
+ new
@@ -317,11 +317,11 @@
* pathbuf, the callback will be invoked a single time on the
* original input path.
* @param callback Function to invoke on each path. Passed the `payload`
* and the buffer containing the current path. The path should not
* be modified in any way. Return non-zero to stop iteration.
- * @param state Passed to fn as the first ath.
+ * @param payload Passed to fn as the first ath.
*/
extern int git_path_walk_up(
git_buf *pathbuf,
const char *ceiling,
int (*callback)(void *payload, const char *path),
@@ -588,7 +588,12 @@
*/
extern bool git_path_isvalid(
git_repository *repo,
const char *path,
unsigned int flags);
+
+/**
+ * Convert any backslashes into slashes
+ */
+int git_path_normalize_slashes(git_buf *out, const char *path);
#endif