File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -2640,8 +2640,10 @@ _git ()
2640
2640
--version
2641
2641
--exec-path
2642
2642
--html-path
2643
+ --info-path
2643
2644
--work-tree=
2644
2645
--namespace=
2646
+ --no-replace-objects
2645
2647
--help
2646
2648
"
2647
2649
;;
Original file line number Diff line number Diff line change @@ -180,8 +180,10 @@ test_expect_success 'double dash "git" itself' '
180
180
--version Z
181
181
--exec-path Z
182
182
--html-path Z
183
+ --info-path Z
183
184
--work-tree=
184
185
--namespace=
186
+ --no-replace-objects Z
185
187
--help Z
186
188
EOF
187
189
test_completion "git --"
@@ -202,4 +204,18 @@ test_expect_success 'double dash "git checkout"' '
202
204
test_completion "git checkout --"
203
205
'
204
206
207
+ test_expect_success ' general options' '
208
+ test_completion "git --ver" "--version " &&
209
+ test_completion "git --hel" "--help " &&
210
+ test_completion "git --exe" "--exec-path " &&
211
+ test_completion "git --htm" "--html-path " &&
212
+ test_completion "git --pag" "--paginate " &&
213
+ test_completion "git --no-p" "--no-pager " &&
214
+ test_completion "git --git" "--git-dir=" &&
215
+ test_completion "git --wor" "--work-tree=" &&
216
+ test_completion "git --nam" "--namespace=" &&
217
+ test_completion "git --bar" "--bare " &&
218
+ test_completion "git --inf" "--info-path " &&
219
+ test_completion "git --no-r" "--no-replace-objects "
220
+ '
205
221
test_done
You can’t perform that action at this time.
0 commit comments