diff options
| author | Russell Belfer <rb@github.com> | 2013-02-11 14:35:41 -0800 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-02-11 14:35:41 -0800 |
| commit | 40a605104c2060c2bc5a08dfb62cafe473baeb21 (patch) | |
| tree | 90c9ae1b89aea407c34f54ad3a878f2425d186ab /include/git2 | |
| parent | 390a3c81410a219b13aa6f333949c803524c8bd2 (diff) | |
| parent | 2bca5b679b9e1f7f7e5cfafa75a6a94549875197 (diff) | |
| download | libgit2-40a605104c2060c2bc5a08dfb62cafe473baeb21.tar.gz | |
Merge pull request #1324 from nulltoken/topic/remote_isvalidname
Topic/remote isvalidname
Diffstat (limited to 'include/git2')
| -rw-r--r-- | include/git2/remote.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index b92a0cd04..6f36a3999 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -450,6 +450,14 @@ GIT_EXTERN(int) git_remote_update_fetchhead(git_remote *remote); */ GIT_EXTERN(void) git_remote_set_update_fetchhead(git_remote *remote, int value); +/** + * Ensure the remote name is well-formed. + * + * @param remote_name name to be checked. + * @return 1 if the reference name is acceptable; 0 if it isn't + */ +GIT_EXTERN(int) git_remote_is_valid_name(const char *remote_name); + /** @} */ GIT_END_DECL #endif |
