File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ test_expect_success 'basic' '
172
172
'
173
173
174
174
test_expect_success ' double dash "git" itself' '
175
- sed -e "s/Z$//" >expected <<-\EOF &&
175
+ test_completion_long "git --" <<-\EOF
176
176
--paginate Z
177
177
--no-pager Z
178
178
--git-dir=
@@ -187,11 +187,10 @@ test_expect_success 'double dash "git" itself' '
187
187
--no-replace-objects Z
188
188
--help Z
189
189
EOF
190
- test_completion "git --"
191
190
'
192
191
193
192
test_expect_success ' double dash "git checkout"' '
194
- sed -e "s/Z$//" >expected <<-\EOF &&
193
+ test_completion_long "git checkout --" <<-\EOF
195
194
--quiet Z
196
195
--ours Z
197
196
--theirs Z
@@ -202,17 +201,15 @@ test_expect_success 'double dash "git checkout"' '
202
201
--orphan Z
203
202
--patch Z
204
203
EOF
205
- test_completion "git checkout --"
206
204
'
207
205
208
206
test_expect_success ' general options' '
209
207
test_completion "git --ver" "--version " &&
210
208
test_completion "git --hel" "--help " &&
211
- sed -e "s/Z$//" >expected <<-\EOF &&
209
+ test_completion_long "git --exe" <<-\EOF &&
212
210
--exec-path Z
213
211
--exec-path=
214
212
EOF
215
- test_completion "git --exe" &&
216
213
test_completion "git --htm" "--html-path " &&
217
214
test_completion "git --pag" "--paginate " &&
218
215
test_completion "git --no-p" "--no-pager " &&
You can’t perform that action at this time.
0 commit comments