Skip to content

Commit

Permalink
Uses the default remote first in issue linking
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Jan 23, 2019
1 parent 7cce14d commit 0a35811
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- Fixes [#631](https://github.com/eamodio/vscode-gitlens/issues/631) - Remotes fail to show in gui
- Fixes [#633](https://github.com/eamodio/vscode-gitlens/issues/633) - Compare File with Previous Revision doesn't work if path contains '#'
- Fixes an issue where the _Open File_, _Open File on Remote_, and _Copy Remote Url to Clipboard_ commands didn't always work on changed files in the _Repositories_ view
- Fixes an issue where the default remote wasn't used first to provide automatic issue linking

## [9.4.1] - 2019-01-08

Expand Down
7 changes: 7 additions & 0 deletions src/annotations/annotations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,13 @@ export class Annotations {
)} "Show Commit Details")`;

message = CommitFormatter.fromTemplate('${message}', commit);

remotes.sort(
(a, b) =>
(a.default ? -1 : 1) - (b.default ? -1 : 1) ||
a.name.localeCompare(b.name, undefined, { numeric: true, sensitivity: 'base' })
);

for (const r of remotes) {
if (r.provider === undefined) continue;

Expand Down

0 comments on commit 0a35811

Please sign in to comment.