File: gitx

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 (38 lines) | stat: -rw-r--r-- 818 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
# (C) 2011 magicant

# Completion script for the "gitx" command.
# Supports GitX 0.7.

function completion/gitx {

	typeset OPTIONS ARGOPT PREFIX
	OPTIONS=( #>#
	"--bisect; show commits between good and bad only"
	"c --commit; start in the commit mode"
	"h --help; print help"
	) #<#
	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
			;;
		('')
			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: