File: gitk-compl

package info (click to toggle)
git-completion 0%2B20060817-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 84 kB
  • ctags: 1
  • sloc: makefile: 30
file content (24 lines) | stat: -rw-r--r-- 423 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# 'gitk' bash completion.
#
# Copyright (c) Paolo Giarrusso, 2005
# Copyright (c) Ben Clifford, 2005
#

bashdefault="-o bashdefault"
default="-o default"

_gitk ()
{
    local cur refs opts
    cur=${COMP_WORDS[COMP_CWORD]}
    opts="--all"
    # all we do is tab-complete on branch and tag names
    COMPREPLY=( $(compgen -W "${opts} $(__git_refs)" -- $cur) )

}

complete $default -F _gitk gitk

# vi: set ft=sh sw=4: