summaryrefslogtreecommitdiff
path: root/src/path.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-10-07 07:26:23 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2021-10-07 07:26:23 -0400
commitf898d2d5875213a406735fbe41d2100ff3bcecfd (patch)
tree67b60632d3de9bd011b88af1f76b6704c853603e /src/path.h
parentb7bad55e4bb0a285b073ba5e02b01d3f522fc95d (diff)
downloadlibgit2-f898d2d5875213a406735fbe41d2100ff3bcecfd.tar.gz
repo: workdir path validation belongs in repo
The repository-specific repository path validation belongs in the repository class, not the generic path class.
Diffstat (limited to 'src/path.h')
-rw-r--r--src/path.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/path.h b/src/path.h
index de6ec8ff2..473ef9ae3 100644
--- a/src/path.h
+++ b/src/path.h
@@ -694,28 +694,6 @@ GIT_INLINE(int) git_path_validate_filesystem(
}
/**
- * Validate a path relative to the repo's worktree. This ensures that
- * the given working tree path is valid for the operating system/platform.
- * This will ensure that an absolute path is smaller than MAX_PATH on
- * Windows, while keeping `core.longpaths` configuration settings in mind.
- *
- * This should be checked by mechamisms like `git_checkout` after
- * contructing on-disk paths and before trying to write them.
- *
- * If the repository is null, no repository configuration is applied.
- */
-extern int git_path_validate_workdir(
- git_repository *repo,
- const char *path);
-extern int git_path_validate_workdir_with_len(
- git_repository *repo,
- const char *path,
- size_t path_len);
-extern int git_path_validate_workdir_buf(
- git_repository *repo,
- git_buf *buf);
-
-/**
* Convert any backslashes into slashes
*/
int git_path_normalize_slashes(git_buf *out, const char *path);