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 /src | |
parent | c3ab1e5af4c43d1031969fbb12c559a55c5baf05 (diff) | |
download | libgit2-010cec3ac26ab8445cc8401fb312f60168916bda.tar.gz |
Add reflog params to git_repository_detach_head
Diffstat (limited to 'src')
-rw-r--r-- | src/repository.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/repository.c b/src/repository.c index 2c1b60266..848aa565d 100644 --- a/src/repository.c +++ b/src/repository.c @@ -1891,7 +1891,9 @@ cleanup: } int git_repository_detach_head( - git_repository* repo) + git_repository* repo, + const git_signature *signature, + const char *reflog_message) { git_reference *old_head = NULL, *new_head = NULL; @@ -1906,7 +1908,8 @@ int git_repository_detach_head( if ((error = git_object_lookup(&object, repo, git_reference_target(old_head), GIT_OBJ_COMMIT)) < 0) goto cleanup; - error = git_reference_create(&new_head, repo, GIT_HEAD_FILE, git_reference_target(old_head), 1, NULL, NULL); + error = git_reference_create(&new_head, repo, GIT_HEAD_FILE, git_reference_target(old_head), + 1, signature, reflog_message); cleanup: git_object_free(object); |