Procházet zdrojové kódy

Fixes #1572: switches to -S if regex is off

While -G & -S aren't equivalent, this gets as close as we can AFAIK
main
Eric Amodio před 2 roky
rodič
revize
777d1359ec
2 změnil soubory, kde provedl 12 přidání a 1 odebrání
  1. +7
    -0
      CHANGELOG.md
  2. +5
    -1
      src/git/providers/localGitProvider.ts

+ 7
- 0
CHANGELOG.md Zobrazit soubor

@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Fixed
- Fixes [#1572](https://github.com/Axosoft/vscode-gitlens/issues/1572) - Forced regular expression search in changes
- Fixes issues using quotes when searching for commits in certain scenarios
## [11.7.0] - 2021-11-18
### Added

+ 5
- 1
src/git/providers/localGitProvider.ts Zobrazit soubor

@ -1814,7 +1814,11 @@ export class LocalGitProvider implements GitProvider, Disposable {
case 'change:':
for (const value of values) {
searchArgs.add(`-G${value.replace(doubleQuoteRegex, '')}`);
searchArgs.add(
search.matchRegex
? `-G${value.replace(doubleQuoteRegex, '')}`
: `-S${value.replace(doubleQuoteRegex, '')}`,
);
}
break;

Načítá se…
Zrušit
Uložit