diff options
author | Ben Straub <bs@github.com> | 2012-12-12 12:23:24 -0800 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2012-12-12 12:23:24 -0800 |
commit | b914e17d8268f836bcd8b785781ed24cbec1c29f (patch) | |
tree | 404a70e3b9b306cd99de4d7ac34d860001d8cba9 /include/git2/remote.h | |
parent | a71c27ccda7f7118ac2c50789fc1407d4d940b98 (diff) | |
download | libgit2-b914e17d8268f836bcd8b785781ed24cbec1c29f.tar.gz |
API to set a dangling remote's repository
Diffstat (limited to 'include/git2/remote.h')
-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. |