diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2016-06-13 12:18:24 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-07-08 22:31:04 (GMT) |
commit | 58142c09a4fe825912e5a2ebfa1ba5f7f6d8beb5 (patch) | |
tree | 14620fbf97f23e4dd31610b2e0776654fe35a4b4 /contrib | |
parent | 346ef53058ef25f5a7273ee77c03ebc5f732ad77 (diff) | |
download | git-58142c09a4fe825912e5a2ebfa1ba5f7f6d8beb5.zip git-58142c09a4fe825912e5a2ebfa1ba5f7f6d8beb5.tar.gz git-58142c09a4fe825912e5a2ebfa1ba5f7f6d8beb5.tar.bz2 |
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')
-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 951a186..f88727d 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" ;; |