worktree: rename is_worktree_locked to worktree_lock_reason
A function prefixed with 'is_' would be expected to return a boolean, however this function returns a string. Signed-off-by: Nickolai Belakovski <nbelakovski@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
e21cc076a3
commit
d236f12bde
@ -235,7 +235,7 @@ int is_main_worktree(const struct worktree *wt)
|
||||
return !wt->id;
|
||||
}
|
||||
|
||||
const char *is_worktree_locked(struct worktree *wt)
|
||||
const char *worktree_lock_reason(struct worktree *wt)
|
||||
{
|
||||
assert(!is_main_worktree(wt));
|
||||
|
||||
|
Reference in New Issue
Block a user