File: gitg

package info (click to toggle)
yash 2.50-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,036 kB
  • sloc: ansic: 33,211; makefile: 839; sh: 477; sed: 16
file content (48 lines) | stat: -rw-r--r-- 1,321 bytes parent folder | download | duplicates (5)
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) 2011 magicant

# Completion script for the "gitg" command.
# Supports gitg 0.2.5.

function completion/gitg {

	typeset OPTIONS ARGOPT PREFIX
	OPTIONS=( #>#
	"--bisect; show commits between good and bad only"
	"--class:; specify a program class used by the window manager"
	"c --commit; start in the commit mode"
	"--display:; specify the X display to use"
	"--g-fatal-warnings; make all GTK+ warnings fatal"
	"--gtk-module:; specify an additional GTK+ module to load"
	"h ? --help; print help"
	"--help-all; print help for all options"
	"--help-gtk; print help for GTK+ options"
	"--name:; specify a program name used by the window manager"
	"-s --select; select commit after loading the repository"
	"V --version; print version info"
	) #<#
	if command -vf completion/git >/dev/null 2>&1 ||
			. -AL completion/git; then
		if command -vf completion/git::rev-list:getopt >/dev/null 2>&1 ||
				. -AL completion/git-rev-list; then
			command -f completion/git::rev-list:getopt
		fi
	fi

	command -f completion//parseoptions -n
	case $ARGOPT in
		(-)
			command -f completion//completeoptions
			;;
		('')
			# TODO support repository operands
			command -f completion/git::completerefpath range=true
			;;
		(*)
			command -f completion/git::rev-list:compopt
			;;
	esac

}


# vim: set ft=sh ts=8 sts=8 sw=8 noet: