diff options
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/remote.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index 153bd1e42..6649b3a46 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -52,6 +52,16 @@ typedef int (*git_remote_rename_problem_cb)(const char *problematic_refspec, voi GIT_EXTERN(int) git_remote_new(git_remote **out, git_repository *repo, const char *name, const char *url, const char *fetch); /** + * Sets the owning repository for the remote. This is only allowed on + * dangling remotes. + * + * @param remote the remote to configure + * @param repo the repository that will own the remote + * @return 0 or an error code + */ +GIT_EXTERN(int) git_remote_set_repository(git_remote *remote, git_repository *repo); + +/** * Get the information for a particular remote * * The name will be checked for validity. |