diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2012-09-09 20:39:13 +0200 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2012-10-25 17:42:36 +0200 |
| commit | fcccf3045f6fbeae5139af7263c2ab986818f154 (patch) | |
| tree | 7b52c5083dde2b8fc8510fdbb3c364d862136b6f /include/git2/remote.h | |
| parent | 3a14d3e2bca4f1af7de978decda1c7ca74ffd3bf (diff) | |
| download | libgit2-fcccf3045f6fbeae5139af7263c2ab986818f154.tar.gz | |
remote: introduce git_remote_rename()
Diffstat (limited to 'include/git2/remote.h')
| -rw-r--r-- | include/git2/remote.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index 6471acc6a..23405ac0c 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -336,6 +336,24 @@ GIT_EXTERN(int) git_remote_autotag(git_remote *remote); */ GIT_EXTERN(void) git_remote_set_autotag(git_remote *remote, int value); +/** + * Give the remote a new name + * + * All remote-tracking branches and configuration settings + * for the remote are updated. + * + * @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 + * that haven't been automatically updated and need potential manual tweaking. + * @param payload Additional data to pass to the callback + * @return 0 or an error code + */ +GIT_EXTERN(int) git_remote_rename( + git_remote *remote, + const char *new_name, + int (*callback)(const char *problematic_refspec, void *payload), + void *payload); /** @} */ GIT_END_DECL |
