@@ -224,8 +224,8 @@ function script:expandParamValues($cmd, $param, $filter) {
224
224
ForEach-Object { -join (" --" , $param , " =" , $_ ) }
225
225
}
226
226
227
- function GitTabExpansion ( $lastBlock ) {
228
- $res = Invoke-Utf8ConsoleCommand { GitTabExpansionInternal $lastBlock $Global :GitStatus }
227
+ function Expand-GitCommand ( $Command ) {
228
+ $res = Invoke-Utf8ConsoleCommand { GitTabExpansionInternal $Command $Global :GitStatus }
229
229
$res
230
230
}
231
231
@@ -403,7 +403,7 @@ if ($PowerTab_RegisterTabExpansion) {
403
403
$line = $Context.Line
404
404
$lastBlock = [regex ]::Split($line , ' [|;]' )[-1 ].TrimStart()
405
405
$TabExpansionHasOutput.Value = $true
406
- GitTabExpansion $lastBlock
406
+ Expand-GitCommand $lastBlock
407
407
}
408
408
return
409
409
}
@@ -417,9 +417,9 @@ function TabExpansion($line, $lastWord) {
417
417
418
418
switch - regex ($lastBlock ) {
419
419
# Execute git tab completion for all git-related commands
420
- " ^$ ( Get-AliasPattern git) (.*)" { GitTabExpansion $lastBlock }
421
- " ^$ ( Get-AliasPattern tgit) (.*)" { GitTabExpansion $lastBlock }
422
- " ^$ ( Get-AliasPattern gitk) (.*)" { GitTabExpansion $lastBlock }
420
+ " ^$ ( Get-AliasPattern git) (.*)" { Expand-GitCommand $lastBlock }
421
+ " ^$ ( Get-AliasPattern tgit) (.*)" { Expand-GitCommand $lastBlock }
422
+ " ^$ ( Get-AliasPattern gitk) (.*)" { Expand-GitCommand $lastBlock }
423
423
424
424
# Fall back on existing tab expansion
425
425
default {
0 commit comments