Permalink
Browse files

Hard-code list of standard commands to include more than the basics (…

…stash, svn, etc)
  • Loading branch information...
1 parent caf55a9 commit 8e118a4eb2b0c81628a2f5079b1acce02fd92073 @dahlbyk committed Dec 14, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 GitTabExpansion.ps1
View
@@ -17,12 +17,12 @@ function script:gitCmdOperations($command, $filter) {
where { $_ -like "$filter*" }
}
+$script:someCommands = @('add','am','annotate','archive','bisect','blame','branch','bundle','checkout','cherry','cherry-pick','citool','clean','clone','commit','config','describe','diff','difftool','fetch','format-patch','gc','grep','gui','help','init','instaweb','log','merge','mergetool','mv','notes','prune','pull','push','rebase','reflog','remote','rerere','reset','revert','rm','shortlog','show','stash','status','submodule','svn','tag','whatchanged')
+
function script:gitCommands($filter, $includeAliases) {
$cmdList = @()
if (-not $global:GitTabSettings.AllCommands) {
- $cmdList += git help |
- foreach { if($_ -match '^ (\S+) (.*)') { $matches[1] } } |
- where { $_ -like "$filter*" }
+ $cmdList += $someCommands -like "$filter*"
} else {
$cmdList += git help --all |
where { $_ -match '^ \S.*' } |

0 comments on commit 8e118a4

Please sign in to comment.