diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2016-06-13 19:18:24 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-07-08 15:31:04 -0700 |
commit | 58142c09a4fe825912e5a2ebfa1ba5f7f6d8beb5 (patch) | |
tree | 14620fbf97f23e4dd31610b2e0776654fe35a4b4 /contrib/completion | |
parent | worktree.c: add is_worktree_locked() (diff) | |
download | tgif-58142c09a4fe825912e5a2ebfa1ba5f7f6d8beb5.tar.xz |
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>
Diffstat (limited to 'contrib/completion')
-rw-r--r-- | contrib/completion/git-completion.bash | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 951a186df0..f88727dfe7 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -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" ;; |