worktree remove: new command
[gitweb.git] / contrib / completion / git-completion.bash
index 3683c772c5586ccc1f6dfc8c047919d8d96aa891..ff4a39631eb73927b32e5e29bfad05bd1e4a0e1f 100644 (file)
@@ -3087,7 +3087,7 @@ _git_whatchanged ()
 
 _git_worktree ()
 {
-       local subcommands="add list lock prune unlock"
+       local subcommands="add list lock move prune remove unlock"
        local subcommand="$(__git_find_on_cmdline "$subcommands")"
        if [ -z "$subcommand" ]; then
                __gitcomp "$subcommands"
@@ -3105,6 +3105,9 @@ _git_worktree ()
                prune,--*)
                        __gitcomp "--dry-run --expire --verbose"
                        ;;
+               remove,--*)
+                       __gitcomp "--force"
+                       ;;
                *)
                        ;;
                esac