| | | |
Offset 121, 15 lines modified | Offset 121, 15 lines modified |
121 | _stg_branch·() | 121 | _stg_branch·() |
122 | { | 122 | { |
123 | ····local·flags="--cleanup·--clone·--create·--delete·--description·--force·--help·--list·--merge·--protect·--rename·--unprotect" | 123 | ····local·flags="--cleanup·--clone·--create·--delete·--description·--force·--help·--list·--merge·--protect·--rename·--unprotect" |
124 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" | 124 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" |
125 | ····local·cur="${COMP_WORDS[COMP_CWORD]}" | 125 | ····local·cur="${COMP_WORDS[COMP_CWORD]}" |
126 | ····case·"$prev"·in | 126 | ····case·"$prev"·in |
127 | ········-d|--description)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; | 127 | ········-d|--description)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; |
128 | ········*)·COMPREPLY=($(compgen·-W·"$(_all_branches)·$flags"·--·"$cur"))·;; | 128 | ········*)·COMPREPLY=($(compgen·-W·"$flags·$(_all_branches)"·--·"$cur"))·;; |
129 | ····esac | 129 | ····esac |
130 | } | 130 | } |
| |
131 | _stg_clean·() | 131 | _stg_clean·() |
132 | { | 132 | { |
133 | ····local·flags="--applied·--help·--unapplied" | 133 | ····local·flags="--applied·--help·--unapplied" |
134 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" | 134 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" |
Offset 152, 38 lines modified | Offset 152, 38 lines modified |
152 | _stg_commit·() | 152 | _stg_commit·() |
153 | { | 153 | { |
154 | ····local·flags="--all·--help·--number" | 154 | ····local·flags="--all·--help·--number" |
155 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" | 155 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" |
156 | ····local·cur="${COMP_WORDS[COMP_CWORD]}" | 156 | ····local·cur="${COMP_WORDS[COMP_CWORD]}" |
157 | ····case·"$prev"·in | 157 | ····case·"$prev"·in |
158 | ········-n|--number)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; | 158 | ········-n|--number)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; |
159 | ········*)·COMPREPLY=($(compgen·-W·"$flags·$(_patch_range·"$(_unapplied_patches)·$(_applied_patches)"·"$cur")"·--·"$cur"))·;; | 159 | ········*)·COMPREPLY=($(compgen·-W·"$(_patch_range·"$(_unapplied_patches)·$(_applied_patches)"·"$cur")·$flags"·--·"$cur"))·;; |
160 | ····esac | 160 | ····esac |
161 | } | 161 | } |
| |
162 | _stg_delete·() | 162 | _stg_delete·() |
163 | { | 163 | { |
164 | ····local·flags="--branch·--help·--spill·--top" | 164 | ····local·flags="--branch·--help·--spill·--top" |
165 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" | 165 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" |
166 | ····local·cur="${COMP_WORDS[COMP_CWORD]}" | 166 | ····local·cur="${COMP_WORDS[COMP_CWORD]}" |
167 | ····case·"$prev"·in | 167 | ····case·"$prev"·in |
168 | ········-b|--branch)·COMPREPLY=($(compgen·-W·"$(_stg_branches)"·--·"$cur"))·;; | 168 | ········-b|--branch)·COMPREPLY=($(compgen·-W·"$(_stg_branches)"·--·"$cur"))·;; |
169 | ········*)·COMPREPLY=($(compgen·-W·"$flags·$(_patch_range·"$(_unapplied_patches)·$(_applied_patches)"·"$cur")"·--·"$cur"))·;; | 169 | ········*)·COMPREPLY=($(compgen·-W·"$(_patch_range·"$(_unapplied_patches)·$(_applied_patches)"·"$cur")·$flags"·--·"$cur"))·;; |
170 | ····esac | 170 | ····esac |
171 | } | 171 | } |
| |
172 | _stg_diff·() | 172 | _stg_diff·() |
173 | { | 173 | { |
174 | ····local·flags="--diff-opts·--help·--range·--stat" | 174 | ····local·flags="--diff-opts·--help·--range·--stat" |
175 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" | 175 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" |
176 | ····local·cur="${COMP_WORDS[COMP_CWORD]}" | 176 | ····local·cur="${COMP_WORDS[COMP_CWORD]}" |
177 | ····case·"$prev"·in | 177 | ····case·"$prev"·in |
178 | ········-r|--range)·COMPREPLY=($(compgen·-W·"$(_patch_range·"$(_unapplied_patches)·$(_applied_patches)·$(_hidden_patches)"·"$cur")"·--·"$cur"))·;; | 178 | ········-r|--range)·COMPREPLY=($(compgen·-W·"$(_patch_range·"$(_unapplied_patches)·$(_applied_patches)·$(_hidden_patches)"·"$cur")"·--·"$cur"))·;; |
179 | ········-O|--diff-opts)·COMPREPLY=($(compgen·-W·"-C·-M"·--·"$cur"))·;; | 179 | ········-O|--diff-opts)·COMPREPLY=($(compgen·-W·"-M·-C"·--·"$cur"))·;; |
180 | ········*)·COMPREPLY=($(compgen·-W·"$(_dirty_files)·$flags·$(_known_files)"·--·"$cur"))·;; | 180 | ········*)·COMPREPLY=($(compgen·-W·"$flags·$(_dirty_files)·$(_known_files)"·--·"$cur"))·;; |
181 | ····esac | 181 | ····esac |
182 | } | 182 | } |
| |
183 | _stg_edit·() | 183 | _stg_edit·() |
184 | { | 184 | { |
185 | ····local·flags="--ack·--authdate·--authemail·--authname·--author·--diff·--diff-opts·--edit·--file·--help·--message·--no-verify·--review·--save-template·--set-tree·--sign" | 185 | ····local·flags="--ack·--authdate·--authemail·--authname·--author·--diff·--diff-opts·--edit·--file·--help·--message·--no-verify·--review·--save-template·--set-tree·--sign" |
186 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" | 186 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" |
Offset 192, 54 lines modified | Offset 192, 54 lines modified |
192 | ········-m|--message)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; | 192 | ········-m|--message)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; |
193 | ········-f|--file)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; | 193 | ········-f|--file)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; |
194 | ········--save-template)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; | 194 | ········--save-template)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; |
195 | ········--author)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; | 195 | ········--author)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; |
196 | ········--authname)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; | 196 | ········--authname)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; |
197 | ········--authemail)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; | 197 | ········--authemail)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; |
198 | ········--authdate)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; | 198 | ········--authdate)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; |
199 | ········-O|--diff-opts)·COMPREPLY=($(compgen·-W·"-C·-M"·--·"$cur"))·;; | 199 | ········-O|--diff-opts)·COMPREPLY=($(compgen·-W·"-M·-C"·--·"$cur"))·;; |
200 | ········-t|--set-tree)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; | 200 | ········-t|--set-tree)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; |
201 | ········*)·COMPREPLY=($(compgen·-W·"$flags·$(_unapplied_patches)·$(_applied_patches)·$(_hidden_patches)"·--·"$cur"))·;; | 201 | ········*)·COMPREPLY=($(compgen·-W·"$(_unapplied_patches)·$(_applied_patches)·$(_hidden_patches)·$flags"·--·"$cur"))·;; |
202 | ····esac | 202 | ····esac |
203 | } | 203 | } |
| |
204 | _stg_export·() | 204 | _stg_export·() |
205 | { | 205 | { |
206 | ····local·flags="--branch·--diff-opts·--dir·--extension·--help·--numbered·--patch·--stdout·--template" | 206 | ····local·flags="--branch·--diff-opts·--dir·--extension·--help·--numbered·--patch·--stdout·--template" |
207 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" | 207 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" |
208 | ····local·cur="${COMP_WORDS[COMP_CWORD]}" | 208 | ····local·cur="${COMP_WORDS[COMP_CWORD]}" |
209 | ····case·"$prev"·in | 209 | ····case·"$prev"·in |
210 | ········-d|--dir)·COMPREPLY=($(compgen·-A·directory·--·"$cur"))·;; | 210 | ········-d|--dir)·COMPREPLY=($(compgen·-A·directory·--·"$cur"))·;; |
211 | ········-e|--extension)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; | 211 | ········-e|--extension)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; |
212 | ········-t|--template)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; | 212 | ········-t|--template)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; |
213 | ········-b|--branch)·COMPREPLY=($(compgen·-W·"$(_stg_branches)"·--·"$cur"))·;; | 213 | ········-b|--branch)·COMPREPLY=($(compgen·-W·"$(_stg_branches)"·--·"$cur"))·;; |
214 | ········-O|--diff-opts)·COMPREPLY=($(compgen·-W·"-C·-M"·--·"$cur"))·;; | 214 | ········-O|--diff-opts)·COMPREPLY=($(compgen·-W·"-M·-C"·--·"$cur"))·;; |
215 | ········*)·COMPREPLY=($(compgen·-W·"$flags·$(_patch_range·"$(_unapplied_patches)·$(_applied_patches)·$(_hidden_patches)"·"$cur")"·--·"$cur"))·;; | 215 | ········*)·COMPREPLY=($(compgen·-W·"$flags·$(_patch_range·"$(_unapplied_patches)·$(_applied_patches)·$(_hidden_patches)"·"$cur")"·--·"$cur"))·;; |
216 | ····esac | 216 | ····esac |
217 | } | 217 | } |
| |
218 | _stg_files·() | 218 | _stg_files·() |
219 | { | 219 | { |
220 | ····local·flags="--bare·--diff-opts·--help·--stat" | 220 | ····local·flags="--bare·--diff-opts·--help·--stat" |
221 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" | 221 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" |
222 | ····local·cur="${COMP_WORDS[COMP_CWORD]}" | 222 | ····local·cur="${COMP_WORDS[COMP_CWORD]}" |
223 | ····case·"$prev"·in | 223 | ····case·"$prev"·in |
224 | ········-O|--diff-opts)·COMPREPLY=($(compgen·-W·"-C·-M"·--·"$cur"))·;; | 224 | ········-O|--diff-opts)·COMPREPLY=($(compgen·-W·"-M·-C"·--·"$cur"))·;; |
225 | ········*)·COMPREPLY=($(compgen·-W·"$flags·$(_unapplied_patches)·$(_applied_patches)·$(_hidden_patches)"·--·"$cur"))·;; | 225 | ········*)·COMPREPLY=($(compgen·-W·"$(_unapplied_patches)·$(_applied_patches)·$(_hidden_patches)·$flags"·--·"$cur"))·;; |
226 | ····esac | 226 | ····esac |
227 | } | 227 | } |
| |
228 | _stg_float·() | 228 | _stg_float·() |
229 | { | 229 | { |
230 | ····local·flags="--help·--keep·--series" | 230 | ····local·flags="--help·--keep·--series" |
231 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" | 231 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" |
232 | ····local·cur="${COMP_WORDS[COMP_CWORD]}" | 232 | ····local·cur="${COMP_WORDS[COMP_CWORD]}" |
233 | ····case·"$prev"·in | 233 | ····case·"$prev"·in |
234 | ········-s|--series)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; | 234 | ········-s|--series)·COMPREPLY=($(compgen·-A·file·--·"$cur"))·;; |
235 | ········*)·COMPREPLY=($(compgen·-W·"$flags·$(_patch_range·"$(_unapplied_patches)·$(_applied_patches)"·"$cur")"·--·"$cur"))·;; | 235 | ········*)·COMPREPLY=($(compgen·-W·"$(_patch_range·"$(_unapplied_patches)·$(_applied_patches)"·"$cur")·$flags"·--·"$cur"))·;; |
236 | ····esac | 236 | ····esac |
237 | } | 237 | } |
| |
238 | _stg_fold·() | 238 | _stg_fold·() |
239 | { | 239 | { |
240 | ····local·flags="--base·--help·--reject·--strip·--threeway" | 240 | ····local·flags="--base·--help·--reject·--strip·--threeway" |
241 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" | 241 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" |
Offset 253, 36 lines modified | Offset 253, 36 lines modified |
| |
253 | _stg_goto·() | 253 | _stg_goto·() |
254 | { | 254 | { |
255 | ····local·flags="--help·--keep·--merged" | 255 | ····local·flags="--help·--keep·--merged" |
256 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" | 256 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" |
257 | ····local·cur="${COMP_WORDS[COMP_CWORD]}" | 257 | ····local·cur="${COMP_WORDS[COMP_CWORD]}" |
258 | ····case·"$prev"·in | 258 | ····case·"$prev"·in |
259 | ········*)·COMPREPLY=($(compgen·-W·"$flags·$(_other_applied_patches)·$(_unapplied_patches)"·--·"$cur"))·;; | 259 | ········*)·COMPREPLY=($(compgen·-W·"$(_unapplied_patches)·$(_other_applied_patches)·$flags"·--·"$cur"))·;; |
260 | ····esac | 260 | ····esac |
261 | } | 261 | } |
| |
262 | _stg_hide·() | 262 | _stg_hide·() |
263 | { | 263 | { |
264 | ····local·flags="--branch·--help" | 264 | ····local·flags="--branch·--help" |
265 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" | 265 | ····local·prev="${COMP_WORDS[COMP_CWORD-1]}" |
266 | ····local·cur="${COMP_WORDS[COMP_CWORD]}" | 266 | ····local·cur="${COMP_WORDS[COMP_CWORD]}" |
267 | ····case·"$prev"·in | 267 | ····case·"$prev"·in |
Max diff block lines reached; 7524/13768 bytes (54.65%) of diff not shown.
|