summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorVicent Marti <vicent@github.com>2014-06-08 16:44:32 +0200
committerVicent Marti <vicent@github.com>2014-06-08 16:44:32 +0200
commitce5e6617b08829d3a473595322a0e67bef9ea645 (patch)
tree321bff4111d5208f10a15f0658270ee14077b159 /include/git2
parent9560203d36647e6d3c0e089939ffe285cf21bf32 (diff)
parent231f350d91e71e3c171041a64f0d238888fad002 (diff)
downloadlibgit2-ce5e6617b08829d3a473595322a0e67bef9ea645.tar.gz
Merge pull request #2407 from libgit2/cmn/remote-rename-morev0.21.0-rc1
More remote rename fixes
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/remote.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index 28771ac42..cba57c4f6 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -572,6 +572,9 @@ GIT_EXTERN(void) git_remote_set_autotag(
*
* A temporary in-memory remote cannot be given a name with this method.
*
+ * @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 new_name the new name the remote should bear
* @param callback Optional callback to notify the consumer of fetch refspecs
@@ -580,10 +583,9 @@ GIT_EXTERN(void) git_remote_set_autotag(
* @return 0, GIT_EINVALIDSPEC, GIT_EEXISTS or an error code
*/
GIT_EXTERN(int) git_remote_rename(
+ git_strarray *problems,
git_remote *remote,
- const char *new_name,
- git_remote_rename_problem_cb callback,
- void *payload);
+ const char *new_name);
/**
* Retrieve the update FETCH_HEAD setting.
@@ -616,8 +618,6 @@ GIT_EXTERN(int) git_remote_is_valid_name(const char *remote_name);
* All remote-tracking branches and configuration settings
* for the remote will be removed.
*
-* once deleted, the passed remote object will be freed and invalidated.
-*
* @param remote A valid remote
* @return 0 on success, or an error code.
*/