apply: move libified code from builtin/apply.c to apply.{c,h}
[gitweb.git] / contrib / completion / git-completion.bash
index 37888f4e570e7f268bdc3e735c63f7a136774aa3..10f6d52254335edeb2253df5b9e63bb4d5608150 100644 (file)
@@ -2693,7 +2693,7 @@ _git_whatchanged ()
 
 _git_worktree ()
 {
-       local subcommands="add list prune"
+       local subcommands="add list lock prune unlock"
        local subcommand="$(__git_find_on_cmdline "$subcommands")"
        if [ -z "$subcommand" ]; then
                __gitcomp "$subcommands"
@@ -2705,6 +2705,9 @@ _git_worktree ()
                list,--*)
                        __gitcomp "--porcelain"
                        ;;
+               lock,--*)
+                       __gitcomp "--reason"
+                       ;;
                prune,--*)
                        __gitcomp "--dry-run --expire --verbose"
                        ;;