Commit a98cef3794432c8850afb55041e3edb8d995734b

Experimental: use generated completions from the fish distribution

Commit diff

completions/git.fish

 
1complete -c git -a add -d 'Add file contents to the index'
2complete -c git -a apply -d 'Apply a patch on a git index file and a working tree'
3complete -c git -a archive -d 'Create an archive of files from a named tree'
4complete -c git -a bisect -d 'Find the change that introduced a bug by binary search'
5complete -c git -a branch -d 'List, create, or delete branches'
6complete -c git -a checkout -d 'Checkout and switch to a branch'
7complete -c git -a cherry-pick -d 'Apply the change introduced by an existing commit'
8complete -c git -a clone -d 'Clone a repository into a new directory'
9complete -c git -a commit -d 'Record changes to the repository'
10complete -c git -a diff -d 'Show changes between commits, commit and working tree, etc'
11complete -c git -a fetch -d 'Download objects and refs from another repository'
12complete -c git -a grep -d 'Print lines matching a pattern'
13complete -c git -a init -d 'Create an empty git repository or reinitialize an existing one'
14complete -c git -a log -d 'Show commit logs'
15complete -c git -a merge -d 'Join two or more development histories together'
16complete -c git -a mv -d 'Move or rename a file, a directory, or a symlink'
17complete -c git -a prune -d 'Prune all unreachable objects from the object database'
18complete -c git -a pull -d 'Fetch from and merge with another repository or a local branch'
19complete -c git -a push -d 'Update remote refs along with associated objects'
20complete -c git -a rebase -d 'Forward-port local commits to the updated upstream head'
21complete -c git -a reset -d 'Reset current HEAD to the specified state'
22complete -c git -a revert -d 'Revert an existing commit'
23complete -c git -a rm -d 'Remove files from the working tree and from the index'
24complete -c git -a show -d 'Show various types of objects'
25complete -c git -a show-branch -d 'Show branches and their commits'
26complete -c git -a status -d 'Show the working tree status'
27complete -c git -a tag -d 'Create, list, delete or verify a tag object signed with GPG'
1
2#
3# Completions for the git command
4# This file was autogenerated by the file make_vcs_completions.fish
5# which is shipped with the fish source code.
6#
7
8#
9# Completions from commandline
10#
11
12
13#
14# subcommands
15#
16
17complete -c git -n '__fish_use_subcommand' -x -a add --description 'Add file contents to the index'
18complete -c git -n '__fish_use_subcommand' -x -a bisect --description 'Find the change that introduced a bug by binary search'
19complete -c git -n '__fish_use_subcommand' -x -a branch --description 'List, create, or delete branches'
20complete -c git -n '__fish_use_subcommand' -x -a checkout --description 'Checkout and switch to a branch'
21complete -c git -n '__fish_use_subcommand' -x -a clone --description 'Clone a repository into a new directory'
22complete -c git -n '__fish_use_subcommand' -x -a commit --description 'Record changes to the repository'
23complete -c git -n '__fish_use_subcommand' -x -a diff --description 'Show changes between commits, commit and working tree, etc'
24complete -c git -n '__fish_use_subcommand' -x -a fetch --description 'Download objects and refs from another repository'
25complete -c git -n '__fish_use_subcommand' -x -a grep --description 'Print lines matching a pattern'
26complete -c git -n '__fish_use_subcommand' -x -a init --description 'Create an empty git repository or reinitialize an existing one'
27complete -c git -n '__fish_use_subcommand' -x -a log --description 'Show commit logs'
28complete -c git -n '__fish_use_subcommand' -x -a merge --description 'Join two or more development histories together'
29complete -c git -n '__fish_use_subcommand' -x -a mv --description 'Move or rename a file, a directory, or a symlink'
30complete -c git -n '__fish_use_subcommand' -x -a pull --description 'Fetch from and merge with another repository or a local branch'
31complete -c git -n '__fish_use_subcommand' -x -a push --description 'Update remote refs along with associated objects'
32complete -c git -n '__fish_use_subcommand' -x -a rebase --description 'Forward-port local commits to the updated upstream head'
33complete -c git -n '__fish_use_subcommand' -x -a reset --description 'Reset current HEAD to the specified state'
34complete -c git -n '__fish_use_subcommand' -x -a rm --description 'Remove files from the working tree and from the index'
35complete -c git -n '__fish_use_subcommand' -x -a show --description 'Show various types of objects'
36complete -c git -n '__fish_use_subcommand' -x -a status --description 'Show the working tree status'
37complete -c git -n '__fish_use_subcommand' -x -a tag --description 'Create, list, delete or verify a tag object signed with GPG'
38
39
40#
41# Completions for the 'add' subcommand
42#
43
44
45
46#
47# Completions for the 'bisect' subcommand
48#
49
50
51
52#
53# Completions for the 'branch' subcommand
54#
55
56complete -c git -n 'contains \'branch\' (commandline -poc)' -l contains -x --description 'Shows only the branches that contains the'
57complete -c git -n 'contains \'branch\' (commandline -poc)' -l no-track -x --description 'Given'
58
59
60#
61# Completions for the 'checkout' subcommand
62#
63
64complete -c git -n 'contains \'checkout\' (commandline -poc)' -l track -x --description '--no-track options, which will be passed to git branch'
65complete -c git -n 'contains \'checkout\' (commandline -poc)' -l no-track -x --description 'Given'
66complete -c git -n 'contains \'checkout\' (commandline -poc)' -l hard -x --description 'To further move around, for example. You'
67
68
69#
70# Completions for the 'clone' subcommand
71#
72
73complete -c git -n 'contains \'clone\' (commandline -poc)' -l reference --description '<repository>'
74complete -c git -n 'contains \'clone\' (commandline -poc)' -l origin -x --description '-o <name>'
75complete -c git -n 'contains \'clone\' (commandline -poc)' -l upload-pack -x --description '-u <upload-pack>'
76complete -c git -n 'contains \'clone\' (commandline -poc)' -l exec -x --description 'Is passed to the command to'
77complete -c git -n 'contains \'clone\' (commandline -poc)' -l depth --description '<depth>'
78
79
80#
81# Completions for the 'commit' subcommand
82#
83
84complete -c git -n 'contains \'commit\' (commandline -poc)' -l author --description '<author>'
85
86
87#
88# Completions for the 'diff' subcommand
89#
90
91complete -c git -n 'contains \'diff\' (commandline -poc)' -l cached --description '<tree-ish>'
92complete -c git -n 'contains \'diff\' (commandline -poc)' -l cc -x --description 'To generate diff output also for merge commits. The output'
93complete -c git -n 'contains \'diff\' (commandline -poc)' -l git -x --description 'B/file2'
94complete -c git -n 'contains \'diff\' (commandline -poc)' -l combined --description 'Describe.c'
95complete -c git -n 'contains \'diff\' (commandline -poc)' -l - --description 'A/describe.c'
96complete -c git -n 'contains \'diff\' (commandline -poc)' -l combined --description 'File'
97complete -c git -n 'contains \'diff\' (commandline -poc)' -l c --description 'File'
98complete -c git -n 'contains \'diff\' (commandline -poc)' -l - --description 'A/file'
99complete -c git -n 'contains \'diff\' (commandline -poc)' -l summary -x --description 'Describes newly added, deleted, renamed and copied'
100complete -c git -n 'contains \'diff\' (commandline -poc)' -l numstat -x --description 'Gives the diffstat(1) information but is designed'
101
102
103#
104# Completions for the 'fetch' subcommand
105#
106
107complete -c git -n 'contains \'fetch\' (commandline -poc)' -l quiet -x --description 'Git-fetch-pack and silence any other internally'
108complete -c git -n 'contains \'fetch\' (commandline -poc)' -l upload-pack --description '<upload-pack>'
109complete -c git -n 'contains \'fetch\' (commandline -poc)' -l exec -x --description 'Is passed to the command to'
110complete -c git -n 'contains \'fetch\' (commandline -poc)' -l depth -x --description 'Option (see git-clone(1)) by the specified'
111
112
113#
114# Completions for the 'grep' subcommand
115#
116
117complete -c git -n 'contains \'grep\' (commandline -poc)' -s E -l extended-regexp -x --description '-G | --basic-regexp'
118complete -c git -n 'contains \'grep\' (commandline -poc)' -s l -l files-with-matches -x --description '-L | --files-without-match'
119complete -c git -n 'contains \'grep\' (commandline -poc)' -l and -x --description '--or | --not | ( | )'
120complete -c git -n 'contains \'grep\' (commandline -poc)' -l or -x --description 'The default operator. --and has higher'
121
122
123#
124# Completions for the 'init' subcommand
125#
126
127
128
129#
130# Completions for the 'log' subcommand
131#
132
133complete -c git -n 'contains \'log\' (commandline -poc)' -l date -x --description 'Shows dates relative to the current time, e.g. "2'
134complete -c git -n 'contains \'log\' (commandline -poc)' -l date -x --description 'Shows timestamps in user´s local timezone'
135complete -c git -n 'contains \'log\' (commandline -poc)' -l date -x --description '(or --date=iso8601) shows timestamps in ISO 8601 format'
136complete -c git -n 'contains \'log\' (commandline -poc)' -l date -x --description '(or --date=rfc2822) shows timestamps in RFC 2822 format,'
137complete -c git -n 'contains \'log\' (commandline -poc)' -l date -x --description 'Shows only date but not time, in YYYY-MM-DD format'
138complete -c git -n 'contains \'log\' (commandline -poc)' -l date -x --description 'Shows timestamps in the original timezone (either'
139complete -c git -n 'contains \'log\' (commandline -poc)' -l since -x --description '--after=date'
140complete -c git -n 'contains \'log\' (commandline -poc)' -l until -x --description '--before=date'
141complete -c git -n 'contains \'log\' (commandline -poc)' -l max-age -x --description '--min-age=timestamp'
142complete -c git -n 'contains \'log\' (commandline -poc)' -l author -x --description '--committer=pattern'
143complete -c git -n 'contains \'log\' (commandline -poc)' -l pretty -x --description 'Other than oneline (for obvious reasons), this'
144complete -c git -n 'contains \'log\' (commandline -poc)' -l pretty -x --description 'The commit message is prefixed with this'
145complete -c git -n 'contains \'log\' (commandline -poc)' -l objects -x --description '^bar thus means "send me all object IDs'
146complete -c git -n 'contains \'log\' (commandline -poc)' -l git -x --description 'B/file2'
147complete -c git -n 'contains \'log\' (commandline -poc)' -l combined --description 'Describe.c'
148complete -c git -n 'contains \'log\' (commandline -poc)' -l - --description 'A/describe.c'
149complete -c git -n 'contains \'log\' (commandline -poc)' -l combined --description 'File'
150complete -c git -n 'contains \'log\' (commandline -poc)' -l c --description 'File'
151complete -c git -n 'contains \'log\' (commandline -poc)' -l - --description 'A/file'
152
153
154#
155# Completions for the 'merge' subcommand
156#
157
158
159
160#
161# Completions for the 'mv' subcommand
162#
163
164
165
166#
167# Completions for the 'pull' subcommand
168#
169
170complete -c git -n 'contains \'pull\' (commandline -poc)' -l quiet -x --description 'Git-fetch-pack and silence any other internally'
171complete -c git -n 'contains \'pull\' (commandline -poc)' -l upload-pack --description '<upload-pack>'
172complete -c git -n 'contains \'pull\' (commandline -poc)' -l exec -x --description 'Is passed to the command to'
173complete -c git -n 'contains \'pull\' (commandline -poc)' -l depth -x --description 'Option (see git-clone(1)) by the specified'
174
175
176#
177# Completions for the 'push' subcommand
178#
179
180
181
182#
183# Completions for the 'rebase' subcommand
184#
185
186complete -c git -n 'contains \'rebase\' (commandline -poc)' -l continue -x --description '--skip | --abort'
187complete -c git -n 'contains \'rebase\' (commandline -poc)' -l onto -x --description 'Next topic'
188complete -c git -n 'contains \'rebase\' (commandline -poc)' -l onto -x --description 'TopicA topicB'
189complete -c git -n 'contains \'rebase\' (commandline -poc)' -l onto -x --description 'TopicA~3 topicA'
190
191
192#
193# Completions for the 'reset' subcommand
194#
195
196
197
198#
199# Completions for the 'rm' subcommand
200#
201
202complete -c git -n 'contains \'rm\' (commandline -poc)' -l cached -x --description 'Given, the staged content has to match either the tip of'
203
204
205#
206# Completions for the 'show' subcommand
207#
208
209
210
211#
212# Completions for the 'status' subcommand
213#
214
215
216
217#
218# Completions for the 'tag' subcommand
219#
220
221
222
223
toggle raw diff