summaryrefslogtreecommitdiff
path: root/src/submodule.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-03-20 09:52:17 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2021-04-14 23:02:51 +0100
commit88323cd0723cf2f6cb6daa1d2fc275a3fdde5efc (patch)
tree1d2d7bd8e7b8096ab0dc0d45b8b4393c133044f9 /src/submodule.c
parent78abfb172b170aca95527c32d8cea17994106c3e (diff)
downloadlibgit2-88323cd0723cf2f6cb6daa1d2fc275a3fdde5efc.tar.gz
path: git_path_isvalid -> git_path_validate
If we want to validate more and different types of paths, the name `git_path_validate` makes that easier and more expressive. We can add, for example, `git_path_validate_foo` while the current name makes that less ergonomic.
Diffstat (limited to 'src/submodule.c')
-rw-r--r--src/submodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/submodule.c b/src/submodule.c
index 50bde2c63..e54cd6a29 100644
--- a/src/submodule.c
+++ b/src/submodule.c
@@ -418,7 +418,7 @@ int git_submodule_name_is_valid(git_repository *repo, const char *name, int flag
git_buf_attach_notowned(&buf, name, strlen(name));
}
- isvalid = git_path_isvalid(repo, buf.ptr, 0, flags);
+ isvalid = git_path_validate(repo, buf.ptr, 0, flags);
git_buf_dispose(&buf);
return isvalid;