Browse Source

Fixes dupes when searching for commits & stashes

main
Eric Amodio 1 year ago
parent
commit
d6984dd19e
2 changed files with 3 additions and 2 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +2
    -2
      src/git/parsers/logParser.ts

+ 1
- 0
CHANGELOG.md View File

@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
### Fixed ### Fixed
- Fixes an issue where the links in the _Search & Compare_ view failed to open the specific search type - Fixes an issue where the links in the _Search & Compare_ view failed to open the specific search type
- Fixes an issue when searching for commits and the results contain stashes
## [14.0.0] - 2023-06-14 ## [14.0.0] - 2023-06-14

+ 2
- 2
src/git/parsers/logParser.ts View File

@ -809,6 +809,7 @@ export class GitLogParser {
stash.stashName, stash.stashName,
stash.stashOnRef, stash.stashOnRef,
); );
commits.set(stash.sha, commit);
} else { } else {
commit = new GitCommit( commit = new GitCommit(
container, container,
@ -834,9 +835,8 @@ export class GitLogParser {
entry.line != null ? [entry.line] : [], entry.line != null ? [entry.line] : [],
entry.tips, entry.tips,
); );
commits.set(entry.sha!, commit);
} }
commits.set(entry.sha!, commit);
} }
} }

Loading…
Cancel
Save