diff options
| author | Ben Straub <bs@github.com> | 2014-01-28 11:30:36 -0800 |
|---|---|---|
| committer | Ben Straub <bs@github.com> | 2014-01-30 15:52:13 -0800 |
| commit | ccf6ce5c895c5d2261538150e945c93799de0999 (patch) | |
| tree | 54177c5c6cb78fce834ecefd2592b770987fe29f /include/git2/refs.h | |
| parent | 540c1809f40c1bb3cf08627a85921309852fa963 (diff) | |
| download | libgit2-ccf6ce5c895c5d2261538150e945c93799de0999.tar.gz | |
Ensure renaming a reference updates the reflog
Diffstat (limited to 'include/git2/refs.h')
| -rw-r--r-- | include/git2/refs.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/git2/refs.h b/include/git2/refs.h index b203f242b..976b7496b 100644 --- a/include/git2/refs.h +++ b/include/git2/refs.h @@ -297,6 +297,8 @@ GIT_EXTERN(int) git_reference_set_target( * @param ref The reference to rename * @param new_name The new name for the reference * @param force Overwrite an existing reference + * @param signature The identity that will used to populate the reflog entry + * @param log_message The one line long message to be appended to the reflog * @return 0 on success, GIT_EINVALIDSPEC, GIT_EEXISTS or an error code * */ @@ -304,7 +306,9 @@ GIT_EXTERN(int) git_reference_rename( git_reference **new_ref, git_reference *ref, const char *new_name, - int force); + int force, + const git_signature *signature, + const char *log_message); /** * Delete an existing reference. |
