Skip to content

Commit

Permalink
completion: misc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Jul 4, 2020
1 parent 865946f commit 680f64d
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions git-fame_completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,27 @@ _git_fame()
;;
*)
case ${prv} in
"--sort")
COMPREPLY=($(compgen -W 'loc commits files' -- ${cur}))
--sort)
COMPREPLY=($(compgen -W 'loc commits files hours months' -- ${cur}))
;;
"--cost")
--cost)
COMPREPLY=($(compgen -W 'months cocomo hours commits' -- ${cur}))
;;
"--format")
--format)
COMPREPLY=($(compgen -W 'pipe markdown yaml json csv tsv tabulate' -- ${cur}))
;;
"--log")
--log)
COMPREPLY=($(compgen -W 'FATAL CRITICAL ERROR WARNING INFO DEBUG NOTSET' -- ${cur}))
;;
--branch)
COMPREPLY=($(compgen -W "$(git branch | sed 's/*/ /')" -- ${cur}))
;;
--manpath)
COMPREPLY=($(compgen -d -- ${cur}))
;;
--incl|--excl|--since)
COMPREPLY=( )
;;
*)
if [ ${COMP_WORDS[1]} == fame ]; then
COMPREPLY=($(compgen -dW '-h --help -v --version --cost --branch --since --sort --incl --excl -n --no-regex -s --silent-progress --warn-binary -t --bytype -w --ignore-whitespace -e --show-email -M -C --format --manpath --log' -- ${cur}))
Expand Down

0 comments on commit 680f64d

Please sign in to comment.