Browse files

Add tab expansion for git commit -C <ref>

Closes #40
  • Loading branch information...
1 parent 080d502 commit e18c7892b4bef0e81893e447d6fe79f6ce327b75 @dahlbyk dahlbyk committed Apr 18, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 GitTabExpansion.ps1
View
5 GitTabExpansion.ps1
@@ -181,6 +181,11 @@ function GitTabExpansion($lastBlock) {
gitBranches $matches['ref'] $true
}
+ # Handles git <cmd> <ref>
+ "^commit.*-C\s+(?<ref>\S*)$" {
+ gitBranches $matches['ref'] $true
+ }
+
# Handles git add <path>
"^add.* (?<files>\S*)$" {
gitFiles $matches['files']

0 comments on commit e18c789

Please sign in to comment.