worktree remove: new command
[gitweb.git] / contrib / completion / git-completion.bash
index 35df6ce9ea3f37c36e4df78929758dd1a818712e..ff4a39631eb73927b32e5e29bfad05bd1e4a0e1f 100644 (file)
@@ -1922,6 +1922,7 @@ _git_pull ()
        --*)
                __gitcomp "
                        --rebase --no-rebase
+                       --autostash --no-autostash
                        $__git_merge_options
                        $__git_fetch_options
                "
@@ -3086,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"
@@ -3104,6 +3105,9 @@ _git_worktree ()
                prune,--*)
                        __gitcomp "--dry-run --expire --verbose"
                        ;;
+               remove,--*)
+                       __gitcomp "--force"
+                       ;;
                *)
                        ;;
                esac