Explorar el Código

Avoids uncommitted sha in commit search

main
Eric Amodio hace 7 años
padre
commit
d08c442436
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      src/commands/showCommitSearch.ts

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

@ -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}`;
}
}

Cargando…
Cancelar
Guardar