/usr/share/yash/completion/git-bisect is in yash 2.35-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | # (C) 2011 magicant
# Completion script for the "git-bisect" command.
# Supports Git 1.7.7.
function completion/git-bisect {
WORDS=(git bisect "${WORDS[2,-1]}")
command -f completion//reexecute
}
function completion/git::bisect:arg {
if [ ${WORDS[#]} -le 1 ]; then #>>#
complete -P "$PREFIX" -D "mark a commit as bad" bad
complete -P "$PREFIX" -D "mark a commit as good" good
complete -P "$PREFIX" -D "print help" help
complete -P "$PREFIX" -D "show the bisection log" log
complete -P "$PREFIX" -D "replay a bisection log" replay
complete -P "$PREFIX" -D "end bisection" reset
complete -P "$PREFIX" -D "start automated bisection" run
complete -P "$PREFIX" -D "mark a commit as untestable" skip
complete -P "$PREFIX" -D "start bisection" start
complete -P "$PREFIX" -D "show remaining suspects with GUI" visualize
#<<#
case ${TARGETWORD#"$PREFIX"} in (vie*)
complete -P "$PREFIX" -D "show remaining suspects with GUI" view
esac
else
WORDS=("${WORDS[2,-1]}")
if command -vf "completion/git::bisect:${WORDS[1]}:arg" >/dev/null 2>&1; then
command -f "completion/git::bisect:${WORDS[1]}:arg"
fi
fi
}
function completion/git::bisect:bad:arg {
command -f completion/git::completeref
}
function completion/git::bisect:good:arg {
command -f completion/git::completeref
}
#function completion/git::bisect:help:arg {
#}
#function completion/git::bisect:log:arg {
#}
function completion/git::bisect:replay:arg {
complete -P "$PREFIX" -f
}
function completion/git::bisect:reset:arg {
command -f completion/git::completeref
}
function completion/git::bisect:run:arg {
WORDS=("${WORDS[2,-1]}")
command -f completion//reexecute -e
}
function completion/git::bisect:skip:arg {
command -f completion/git::completeref range=true
}
function completion/git::bisect:start:arg {
command -f completion/git::completerefpath
}
#function completion/git::bisect:view:arg {
#}
#function completion/git::bisect:visualize:arg {
#}
# vim: set ft=sh ts=8 sts=8 sw=8 noet:
|