summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorJacques Germishuys <jacquesg@striata.com>2018-03-02 12:41:04 +0200
committerJacques Germishuys <jacquesg@striata.com>2018-03-02 12:41:04 +0200
commit123560764855067174ed48b652a49737a674f423 (patch)
tree821d1df4ca7e6c201562d3d55e85bef954ea415d /include/git2
parent8a8ea1db12eeeefe2dc3e192f597df9892588f6a (diff)
downloadlibgit2-123560764855067174ed48b652a49737a674f423.tar.gz
worktree: lock reason should be const
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/worktree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git2/worktree.h b/include/git2/worktree.h
index d3fa88e3f..a2a5d4473 100644
--- a/include/git2/worktree.h
+++ b/include/git2/worktree.h
@@ -123,7 +123,7 @@ GIT_EXTERN(int) git_worktree_add(git_worktree **out, git_repository *repo,
* @param reason Reason why the working tree is being locked
* @return 0 on success, non-zero otherwise
*/
-GIT_EXTERN(int) git_worktree_lock(git_worktree *wt, char *reason);
+GIT_EXTERN(int) git_worktree_lock(git_worktree *wt, const char *reason);
/**
* Unlock a locked worktree