Skip to content

Commit

Permalink
Local branch completion for cherry-pick and log
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlbyk committed Aug 30, 2010
1 parent 3087b5e commit 21d8bf9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions GitTabExpansion.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@ function GitTabExpansion($lastBlock) {
gitIndex $matches['path']
}

# Handles git cherry-pick <commit>
# Handles git log <commit>
'^git (?:cherry-pick|log).* (?<commit>\S*)$' {
gitLocalBranches $matches['commit']
}

# Handles git reset <commit>
'^git reset.* (?<commit>\S*)$' {
gitLocalBranches $matches['commit'] $true
Expand Down

0 comments on commit 21d8bf9

Please sign in to comment.