Commit 53e692af by Jacques Germishuys

worktree: rename parameter creason to reason

parent 12356076
...@@ -383,7 +383,7 @@ out: ...@@ -383,7 +383,7 @@ out:
return err; return err;
} }
int git_worktree_lock(git_worktree *wt, const char *creason) int git_worktree_lock(git_worktree *wt, const char *reason)
{ {
git_buf buf = GIT_BUF_INIT, path = GIT_BUF_INIT; git_buf buf = GIT_BUF_INIT, path = GIT_BUF_INIT;
int err; int err;
...@@ -396,8 +396,8 @@ int git_worktree_lock(git_worktree *wt, const char *creason) ...@@ -396,8 +396,8 @@ int git_worktree_lock(git_worktree *wt, const char *creason)
if ((err = git_buf_joinpath(&path, wt->gitdir_path, "locked")) < 0) if ((err = git_buf_joinpath(&path, wt->gitdir_path, "locked")) < 0)
goto out; goto out;
if (creason) if (reason)
git_buf_attach_notowned(&buf, creason, strlen(creason)); git_buf_attach_notowned(&buf, reason, strlen(reason));
if ((err = git_futils_writebuffer(&buf, path.ptr, O_CREAT|O_EXCL|O_WRONLY, 0644)) < 0) if ((err = git_futils_writebuffer(&buf, path.ptr, O_CREAT|O_EXCL|O_WRONLY, 0644)) < 0)
goto out; goto out;
......
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