diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2014-10-24 16:44:07 -0700 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2014-10-24 16:44:07 -0700 |
commit | 725cd5f29d0c3f7e4019dfc6aacf0fd1843210a9 (patch) | |
tree | fde3a192471e2207df5febcb9b8eb729f1df2148 /include | |
parent | b8041215cfd3b229fc41747f7e86a0521e47b429 (diff) | |
parent | 46c8f7f8459e7062ca04d1cb8e11cf84e5cfbd0f (diff) | |
download | libgit2-725cd5f29d0c3f7e4019dfc6aacf0fd1843210a9.tar.gz |
Merge pull request #2646 from libgit2/cmn/remote-rename
remote: accept a repo and name for renaming
Diffstat (limited to 'include')
-rw-r--r-- | include/git2/remote.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index b617a5d18..717830f8b 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -544,18 +544,21 @@ GIT_EXTERN(void) git_remote_set_autotag( * The new name will be checked for validity. * See `git_tag_create()` for rules about valid names. * - * A temporary in-memory remote cannot be given a name with this method. + * No loaded instances of a the remote with the old name will change + * their name or their list of refspecs. * * @param problems non-default refspecs cannot be renamed and will be * stored here for further processing by the caller. Always free this * strarray on succesful return. - * @param remote the remote to rename + * @param repo the repository in which to rename + * @param name the current name of the reamote * @param new_name the new name the remote should bear * @return 0, GIT_EINVALIDSPEC, GIT_EEXISTS or an error code */ GIT_EXTERN(int) git_remote_rename( git_strarray *problems, - git_remote *remote, + git_repository *repo, + const char *name, const char *new_name); /** |