summaryrefslogtreecommitdiff
path: root/include/git2/repository.h
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2014-02-04 20:50:40 -0800
committerBen Straub <bs@github.com>2014-02-04 20:50:40 -0800
commit010cec3ac26ab8445cc8401fb312f60168916bda (patch)
tree813b120670ac04f5c18a5e28546fde36e44ba72c /include/git2/repository.h
parentc3ab1e5af4c43d1031969fbb12c559a55c5baf05 (diff)
downloadlibgit2-010cec3ac26ab8445cc8401fb312f60168916bda.tar.gz
Add reflog params to git_repository_detach_head
Diffstat (limited to 'include/git2/repository.h')
-rw-r--r--include/git2/repository.h6
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,