diff options
| author | Ben Straub <bs@github.com> | 2014-02-04 20:50:40 -0800 |
|---|---|---|
| committer | Ben Straub <bs@github.com> | 2014-02-04 20:50:40 -0800 |
| commit | 010cec3ac26ab8445cc8401fb312f60168916bda (patch) | |
| tree | 813b120670ac04f5c18a5e28546fde36e44ba72c /include/git2/repository.h | |
| parent | c3ab1e5af4c43d1031969fbb12c559a55c5baf05 (diff) | |
| download | libgit2-010cec3ac26ab8445cc8401fb312f60168916bda.tar.gz | |
Add reflog params to git_repository_detach_head
Diffstat (limited to 'include/git2/repository.h')
| -rw-r--r-- | include/git2/repository.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/git2/repository.h b/include/git2/repository.h index 648667cd6..bf12c7a69 100644 --- a/include/git2/repository.h +++ b/include/git2/repository.h @@ -615,11 +615,15 @@ GIT_EXTERN(int) git_repository_set_head_detached( * Otherwise, the HEAD will be detached and point to the peeled Commit. * * @param repo Repository pointer + * @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_EUNBORNBRANCH when HEAD points to a non existing * branch or an error code */ GIT_EXTERN(int) git_repository_detach_head( - git_repository* repo); + git_repository* repo, + const git_signature *signature, + const char *reflog_message); typedef enum { GIT_REPOSITORY_STATE_NONE, |
