Ver a proveniência

Avoids uncommitted sha in commit search

main
Eric Amodio há 7 anos
ascendente
cometimento
d08c442436
1 ficheiros alterados com 1 adições e 1 eliminações
  1. +1
    -1
      src/commands/showCommitSearch.ts

+ 1
- 1
src/commands/showCommitSearch.ts Ver ficheiro

@ -43,7 +43,7 @@ export class ShowCommitSearchCommand extends ActiveEditorCachedCommand {
if (!args.search) {
if (editor !== undefined && gitUri !== undefined) {
const blameLine = await this.git.getBlameForLine(gitUri, editor.selection.active.line);
if (blameLine !== undefined) {
if (blameLine !== undefined && !blameLine.commit.isUncommitted) {
args.search = `#${blameLine.commit.shortSha}`;
}
}

Carregando…
Cancelar
Guardar