-
-
Notifications
You must be signed in to change notification settings - Fork 802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issue with tab expansion of duplicate aliases. #422
Conversation
Add Pester test for bug. Fix #421.
GitHub Desktop has an alias.co in --system git config --show-origin --get-regexp '^alias\.co$'
Added a few commits to:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (with the one minor tweak Sort-Object -Unique
src/GitTabExpansion.ps1
Outdated
@@ -188,12 +188,13 @@ function script:gitAliases($filter) { | |||
$alias | |||
} | |||
} | |||
} | Sort-Object | |||
} | Get-Unique | Sort-Object |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is probably a bit better to use Sort-Object -Unique
. And yes, that is available on v2 (just checked).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL
|
||
RemoveGitTempRepo $repoPath | ||
} | ||
It 'Command completion includes unique list of aliases' { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fleshing out these tests!
Add Pester test for bug. Fix #421.
Also, fix that duplicate aliases would appear in the command tab expansion list.