Skip to content

Commit 53e692a

Browse files
committed
worktree: rename parameter creason to reason
1 parent 1235607 commit 53e692a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/worktree.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ int git_worktree_add(git_worktree **out, git_repository *repo,
383383
return err;
384384
}
385385

386-
int git_worktree_lock(git_worktree *wt, const char *creason)
386+
int git_worktree_lock(git_worktree *wt, const char *reason)
387387
{
388388
git_buf buf = GIT_BUF_INIT, path = GIT_BUF_INIT;
389389
int err;
@@ -396,8 +396,8 @@ int git_worktree_lock(git_worktree *wt, const char *creason)
396396
if ((err = git_buf_joinpath(&path, wt->gitdir_path, "locked")) < 0)
397397
goto out;
398398

399-
if (creason)
400-
git_buf_attach_notowned(&buf, creason, strlen(creason));
399+
if (reason)
400+
git_buf_attach_notowned(&buf, reason, strlen(reason));
401401

402402
if ((err = git_futils_writebuffer(&buf, path.ptr, O_CREAT|O_EXCL|O_WRONLY, 0644)) < 0)
403403
goto out;

0 commit comments

Comments
 (0)