diff --git a/src/GitParamTabExpansion.ps1 b/src/GitParamTabExpansion.ps1 index 9ba21f7e5..361a4c611 100644 --- a/src/GitParamTabExpansion.ps1 +++ b/src/GitParamTabExpansion.ps1 @@ -49,7 +49,7 @@ $longGitParams = @{ checkout = 'quiet force ours theirs track no-track detach orphan ignore-skip-worktree-bits merge conflict= patch' 'cherry-pick' = 'edit mainline no-commit signoff gpg-sign ff allow-empty allow-empty-message keep-redundant-commits strategy= strategy-option= continue quit abort' clean = 'force interactive dry-run quiet exclude=' - 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=' + 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' 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' 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' describe = 'dirty all tags contains abbrev candidates= exact-match debug long match always first-parent' diff --git a/test/GitParamTabExpansion.Tests.ps1 b/test/GitParamTabExpansion.Tests.ps1 index 55db8c2b9..109664401 100644 --- a/test/GitParamTabExpansion.Tests.ps1 +++ b/test/GitParamTabExpansion.Tests.ps1 @@ -49,6 +49,7 @@ Describe 'ParamsTabExpansion Tests' { It 'Tab completes all long clone parameters' { $result = & $module GitTabExpansionInternal 'git clone --' $result -contains '--filter=' | Should -Be $true + $result -contains '--sparse' | Should -Be $true } It 'Tab completes clone parameters values' { $result = & $module GitTabExpansionInternal 'git clone --filter='