Sfoglia il codice sorgente

Fixes stash matching for commit search

e.g. `stash{1}`
main
Eric Amodio 3 anni fa
parent
commit
d6f56aaf87
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      src/git/search.ts

+ 1
- 1
src/git/search.ts Vedi File

@ -52,7 +52,7 @@ export namespace SearchPattern {
]);
const searchOperationRegex =
/(?:(?<op>=:|message:|@:|author:|#:|commit:|\?:|file:|~:|change:)\s?(?<value>".+?"|\S+\b))|(?<text>\S+)(?!(?:=|message|@|author|#|commit|\?|file|~|change):)/gi;
/(?:(?<op>=:|message:|@:|author:|#:|commit:|\?:|file:|~:|change:)\s?(?<value>".+?"|\S+\b}?))|(?<text>\S+)(?!(?:=|message|@|author|#|commit|\?|file|~|change):)/gi;
export function fromCommit(ref: string): string;
export function fromCommit(commit: GitRevisionReference): string;

Caricamento…
Annulla
Salva