worktree: add "lock" command
[gitweb.git] / contrib / completion / git-completion.bash
index 951a186df0d6a695cb7ec58d85dd1682dfe9a70a..f88727dfe771614de04dcfacb24f4bf2c37e8d1e 100644 (file)
@@ -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"
                        ;;