diff --git a/GitTabExpansion.ps1 b/GitTabExpansion.ps1 index 523697d71..1cc9d5785 100644 --- a/GitTabExpansion.ps1 +++ b/GitTabExpansion.ps1 @@ -176,11 +176,6 @@ function GitTabExpansion($lastBlock) { gitIndex $matches['path'] } - # Handles git - "^(?:checkout|cherry-pick|diff|difftool|log|merge|rebase|reflog\s+show|reset|revert|show).* (?\S*)$" { - gitBranches $matches['ref'] $true - } - # Handles git "^commit.*-C\s+(?\S*)$" { gitBranches $matches['ref'] $true @@ -200,6 +195,11 @@ function GitTabExpansion($lastBlock) { "^rm.* (?\S*)$" { gitDeleted $matches['index'] } + + # Handles git + "^(?:checkout|cherry-pick|diff|difftool|log|merge|rebase|reflog\s+show|reset|revert|show).* (?\S*)$" { + gitBranches $matches['ref'] $true + } } }