Skip to content

Commit 106f563

Browse files
committed
fix expansion for long params
1 parent 9a6b9db commit 106f563

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/GitTabExpansion.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,9 @@ function GitTabExpansionInternal($lastBlock, $GitStatus = $null) {
466466
}
467467

468468
# Handles git sparse-checkout <cmd>
469-
"^sparse-checkout (?<cmd>$($subcommands.Keys -join '|'))\s+(?<op>\S*)$" {
470-
gitCmdOperations $subcommands $matches['cmd'] $matches['op']
469+
"^sparse-checkout\s+(?<cmd>$sparseCheckoutCommandsWithLongParams).*--(?<param>\S*)$"
470+
{
471+
expandLongParams $longSparseCheckoutParams $matches['cmd'] $matches['param']
471472
}
472473

473474
# Handles git <cmd> <ref>

0 commit comments

Comments
 (0)