debugpy/build/git-subrepo/share/completion.bash
Rich Chiodo f4ba976121
Subrepo command wasn't checked in correctly (#1737)
* Remove subrepo

* Fix subrepo
2024-11-18 09:50:34 -08:00

42 lines
1.2 KiB
Bash

#!bash
# DO NOT EDIT. This file generated by pkg/bin/generate-completion.pl.
_git_subrepo() {
local _opts=" -h --help --version -a --all -A --ALL -b= --branch= -e --edit -f --force -F --fetch -M= --method= --Default -m= --message= -r= --remote= -s --squash -u --update -q --quiet -v --verbose -d --debug -x --DEBUG"
local subcommands="branch clean clone commit config fetch help init pull push status upgrade version"
local subdircommands="branch clean commit config fetch pull push status"
local subcommand="$(__git_find_on_cmdline "$subcommands")"
if [ -z "$subcommand" ]; then
# no subcommand yet
case "$cur" in
-*)
__gitcomp "$_opts"
;;
*)
__gitcomp "$subcommands"
esac
else
case "$cur" in
-*)
__gitcomp "$_opts"
return
;;
esac
if [[ "$subcommand" == "help" ]]; then
__gitcomp "$subcommands"
return
fi
local subdircommand="$(__git_find_on_cmdline "$subdircommands")"
if [ ! -z "$subdircommand" ]; then
local git_subrepos=`git subrepo status -q`
__gitcomp "$git_subrepos"
fi
fi
}