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
|
# (C) 2014-2025 magicant
# Completion script for the "git-describe" command.
# Supports Git 2.48.1.
function completion/git-describe {
WORDS=(git describe "${WORDS[2,-1]}")
command -f completion//reexecute
}
function completion/git::describe:arg {
OPTIONS=( #>#
"--abbrev:; specify the number of hexadecimal digits"
"--all; use any ref, not only an annotated tag"
"--always; show uniquely abbreviated commit object as fallback"
"--broken:; describe HEAD even if the repository is broken"
"--candidates:; specify the number of candidate tags"
"--contains; use a tag that contains the described commit"
"--debug; print debugging information"
"--dirty::; describe HEAD with the specified suffix"
"--exact-match; like --candidate=0"
"--exclude:; do not consider refs matching the given glob"
"--first-parent; only follow first parents of merges"
"--long; always print in the long format"
"--match:; specify a pattern to restrict candidate tags"
"--tags; use any tag, not only an annotated tag"
) #<#
command -f completion//parseoptions -n
case $ARGOPT in
(-)
command -f completion//completeoptions
;;
# (--broken|--dirty)
# ;;
# (--exclude)
# ;;
# (--match)
# ;;
('')
command -f completion/git::completeref
;;
esac
}
# vim: set ft=sh ts=8 sts=8 sw=8 et:
|