diff options
author | Nickolai Belakovski <nbelakovski@gmail.com> | 2018-10-29 23:24:09 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-31 11:41:47 +0900 |
commit | d236f12bdeb478bbaabf056bc611c34cf9218ca8 (patch) | |
tree | 0f108fa94f81fa5169cd99d76697a2949e666e2e /worktree.c | |
parent | e21cc076a31c8f6a39946f914338aa4dd6c9de3d (diff) | |
download | git-d236f12bdeb478bbaabf056bc611c34cf9218ca8.tar.gz |
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>
Diffstat (limited to 'worktree.c')
-rw-r--r-- | worktree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/worktree.c b/worktree.c index b0d0b5426d..befdbe7fae 100644 --- a/worktree.c +++ b/worktree.c @@ -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)); |