Skip to content

Commit

Permalink
Tab completion for clone --sparse
Browse files Browse the repository at this point in the history
  • Loading branch information
bgold09 committed Apr 10, 2023
1 parent 2224565 commit ad98bae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/GitParamTabExpansion.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions test/GitParamTabExpansion.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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='
Expand Down

0 comments on commit ad98bae

Please sign in to comment.