Commit 12356076 by Jacques Germishuys

worktree: lock reason should be const

parent 8a8ea1db
...@@ -123,7 +123,7 @@ GIT_EXTERN(int) git_worktree_add(git_worktree **out, git_repository *repo, ...@@ -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 * @param reason Reason why the working tree is being locked
* @return 0 on success, non-zero otherwise * @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 * Unlock a locked worktree
......
...@@ -383,7 +383,7 @@ out: ...@@ -383,7 +383,7 @@ out:
return err; return err;
} }
int git_worktree_lock(git_worktree *wt, char *creason) int git_worktree_lock(git_worktree *wt, const char *creason)
{ {
git_buf buf = GIT_BUF_INIT, path = GIT_BUF_INIT; git_buf buf = GIT_BUF_INIT, path = GIT_BUF_INIT;
int err; int err;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment