diff options
| author | Ben Straub <bs@github.com> | 2014-01-25 08:04:49 -0800 |
|---|---|---|
| committer | Ben Straub <bs@github.com> | 2014-01-30 15:51:00 -0800 |
| commit | 94f263f59be5be74945367b9793c57f297ed4a44 (patch) | |
| tree | 18c713d67936fcb23f86794684757dbf01141f21 /include/git2/repository.h | |
| parent | 8646b0a0689c89d9cad949754885ec542b4d0ce1 (diff) | |
| download | libgit2-94f263f59be5be74945367b9793c57f297ed4a44.tar.gz | |
Add reflog params to set-head calls
Diffstat (limited to 'include/git2/repository.h')
| -rw-r--r-- | include/git2/repository.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/git2/repository.h b/include/git2/repository.h index a0453da5c..648667cd6 100644 --- a/include/git2/repository.h +++ b/include/git2/repository.h @@ -567,11 +567,15 @@ GIT_EXTERN(int) git_repository_hashfile( * * @param repo Repository pointer * @param refname Canonical name of the reference the HEAD should point at + * @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, or an error code */ GIT_EXTERN(int) git_repository_set_head( git_repository* repo, - const char* refname); + const char* refname, + const git_signature *signature, + const char *log_message); /** * Make the repository HEAD directly point to the Commit. @@ -587,11 +591,15 @@ GIT_EXTERN(int) git_repository_set_head( * * @param repo Repository pointer * @param commitish Object id of the Commit the HEAD should point to + * @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, or an error code */ GIT_EXTERN(int) git_repository_set_head_detached( git_repository* repo, - const git_oid* commitish); + const git_oid* commitish, + const git_signature *signature, + const char *log_message); /** * Detach the HEAD. |
