We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb133d8 commit d08c442Copy full SHA for d08c442
src/commands/showCommitSearch.ts
@@ -43,7 +43,7 @@ export class ShowCommitSearchCommand extends ActiveEditorCachedCommand {
43
if (!args.search) {
44
if (editor !== undefined && gitUri !== undefined) {
45
const blameLine = await this.git.getBlameForLine(gitUri, editor.selection.active.line);
46
- if (blameLine !== undefined) {
+ if (blameLine !== undefined && !blameLine.commit.isUncommitted) {
47
args.search = `#${blameLine.commit.shortSha}`;
48
}
49
0 commit comments