worktree: add "lock" command
Helped-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
346ef53058
commit
58142c09a4
@ -2597,7 +2597,7 @@ _git_whatchanged ()
|
||||
|
||||
_git_worktree ()
|
||||
{
|
||||
local subcommands="add list prune"
|
||||
local subcommands="add list lock prune"
|
||||
local subcommand="$(__git_find_on_cmdline "$subcommands")"
|
||||
if [ -z "$subcommand" ]; then
|
||||
__gitcomp "$subcommands"
|
||||
@ -2609,6 +2609,9 @@ _git_worktree ()
|
||||
list,--*)
|
||||
__gitcomp "--porcelain"
|
||||
;;
|
||||
lock,--*)
|
||||
__gitcomp "--reason"
|
||||
;;
|
||||
prune,--*)
|
||||
__gitcomp "--dry-run --expire --verbose"
|
||||
;;
|
||||
|
Reference in New Issue
Block a user