Browse Source

Fixes #2355 search by commit changes

main
Eric Amodio 1 year ago
parent
commit
41f885f7d1
2 changed files with 2 additions and 4 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +1
    -4
      src/git/search.ts

+ 1
- 0
CHANGELOG.md View File

@ -49,6 +49,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
### Fixed ### Fixed
- Fixes [#2355](https://github.com/gitkraken/vscode-gitlens/issues/2355) - Search by changes stops working in version 13.x.x
- Fixes [#2473](https://github.com/gitkraken/vscode-gitlens/issues/2473) - Commit graph status bar show wrong last fetched date - Fixes [#2473](https://github.com/gitkraken/vscode-gitlens/issues/2473) - Commit graph status bar show wrong last fetched date
- Fixes [#2409](https://github.com/gitkraken/vscode-gitlens/issues/2409) - Commit Graph Show Current Branch Only shows unrelated commits from other branches - Fixes [#2409](https://github.com/gitkraken/vscode-gitlens/issues/2409) - Commit Graph Show Current Branch Only shows unrelated commits from other branches
- Fixes an issue where pinning not being respected in Commit Details view - Fixes an issue where pinning not being respected in Commit Details view

+ 1
- 4
src/git/search.ts View File

@ -226,11 +226,8 @@ export function getGitArgsFromSearchQuery(
if (value.startsWith('"')) { if (value.startsWith('"')) {
value = value.replace(doubleQuoteRegex, ''); value = value.replace(doubleQuoteRegex, '');
if (!value) continue; if (!value) continue;
searchArgs.add(search.matchRegex ? `-G${value}` : `-S${value}`);
} else {
searchArgs.add(search.matchRegex ? `-G"${value}"` : `-S"${value}"`);
} }
searchArgs.add(search.matchRegex ? `-G${value}` : `-S${value}`);
} }
break; break;

Loading…
Cancel
Save