瀏覽代碼

Adds auto search by commit if pattern is a sha

main
Eric Amodio 5 年之前
父節點
當前提交
5af5af0d05
共有 1 個文件被更改,包括 13 次插入1 次删除
  1. +13
    -1
      src/git/gitService.ts

+ 13
- 1
src/git/gitService.ts 查看文件

@ -3051,7 +3051,19 @@ export class GitService implements Disposable {
let match = searchMessageOperationRegex.exec(search);
if (match != null && match[1] !== '') {
this.parseSearchMessageOperations(match[1], operations);
[, value] = match;
if (GitService.isSha(value)) {
let values = operations.get('commit:');
if (values === undefined) {
values = [value];
operations.set('commit:', values);
} else {
values.push(value);
}
} else {
this.parseSearchMessageOperations(value, operations);
}
}
do {

Loading…
取消
儲存