diff options
| author | Russell Belfer <rb@github.com> | 2012-10-25 10:55:03 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2012-10-25 10:55:03 -0700 |
| commit | 1b9346897b3be1c8f659e12a6ee84c74858fc32e (patch) | |
| tree | 16b415e58f1343d45111376eae4ecd7ebc77e3d3 /include/git2/remote.h | |
| parent | 505f37b41a7d80c539a33d28aec947cd87bb1b6c (diff) | |
| parent | fcccf3045f6fbeae5139af7263c2ab986818f154 (diff) | |
| download | libgit2-1b9346897b3be1c8f659e12a6ee84c74858fc32e.tar.gz | |
Merge pull request #925 from nulltoken/topic/moving-branch-updates-config
Updates config upon moving and deletion of branches
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 1ec1a0840..ad5c38902 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -347,6 +347,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 |
