Skip to content

Commit ad98bae

Browse files
committed
Tab completion for clone --sparse
1 parent 2224565 commit ad98bae

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/GitParamTabExpansion.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ $longGitParams = @{
4949
checkout = 'quiet force ours theirs track no-track detach orphan ignore-skip-worktree-bits merge conflict= patch'
5050
'cherry-pick' = 'edit mainline no-commit signoff gpg-sign ff allow-empty allow-empty-message keep-redundant-commits strategy= strategy-option= continue quit abort'
5151
clean = 'force interactive dry-run quiet exclude='
52-
clone = 'local no-hardlinks shared reference quiet verbose progress no-checkout bare mirror origin branch upload-pack template= config depth single-branch no-single-branch recursive recurse-submodules separate-git-dir= filter='
52+
clone = 'local no-hardlinks shared reference quiet verbose progress no-checkout bare mirror origin branch upload-pack template= config depth single-branch no-single-branch recursive recurse-submodules separate-git-dir= filter= sparse'
5353
commit = 'all patch reuse-message reedit-message fixup squash reset-author short branch porcelain long null file author date message template signoff no-verify allow-empty allow-empty-message cleanup= edit no-edit amend no-post-rewrite include only untracked-files verbose quiet dry-run status no-status gpg-sign no-gpg-sign'
5454
config = 'replace-all add get get-all get-regexp get-urlmatch global system local file blob remove-section rename-section unset unset-all list bool int bool-or-int path null get-colorbool get-color edit includes no-includes'
5555
describe = 'dirty all tags contains abbrev candidates= exact-match debug long match always first-parent'

test/GitParamTabExpansion.Tests.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Describe 'ParamsTabExpansion Tests' {
4949
It 'Tab completes all long clone parameters' {
5050
$result = & $module GitTabExpansionInternal 'git clone --'
5151
$result -contains '--filter=' | Should -Be $true
52+
$result -contains '--sparse' | Should -Be $true
5253
}
5354
It 'Tab completes clone parameters values' {
5455
$result = & $module GitTabExpansionInternal 'git clone --filter='

0 commit comments

Comments
 (0)