diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-01 09:34:32 -0400 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-09 15:17:17 +0000 |
| commit | 63e36c53caa8c3f1581471de64bbef3ca87f3921 (patch) | |
| tree | c8784f96bd2f608231fe807bb7f5629394f90f32 /src/tree.c | |
| parent | 434a46107bbb1c4d90832c92d4d0f5c89cb82ead (diff) | |
| download | libgit2-63e36c53caa8c3f1581471de64bbef3ca87f3921.tar.gz | |
path: `validate` -> `is_valid`
Since we're returning a boolean about validation, the name is more
properly "is valid".
Diffstat (limited to 'src/tree.c')
| -rw-r--r-- | src/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tree.c b/src/tree.c index 256e72080..b8e82d485 100644 --- a/src/tree.c +++ b/src/tree.c @@ -55,7 +55,7 @@ GIT_INLINE(git_filemode_t) normalize_filemode(git_filemode_t filemode) static int valid_entry_name(git_repository *repo, const char *filename) { return *filename != '\0' && - git_path_validate(repo, filename, 0, + git_path_is_valid(repo, filename, 0, GIT_FS_PATH_REJECT_TRAVERSAL | GIT_PATH_REJECT_DOT_GIT | GIT_FS_PATH_REJECT_SLASH); } |
