From 85826eb0911a179f43976c7733eee6a462581721 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 22 Feb 2017 04:25:21 -0500 Subject: [PATCH] Fixes #32 - 00000000 Uncommitted changes distracting --- src/blameActiveLineController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blameActiveLineController.ts b/src/blameActiveLineController.ts index 3adbc7e..6709812 100644 --- a/src/blameActiveLineController.ts +++ b/src/blameActiveLineController.ts @@ -282,7 +282,7 @@ export default class BlameActiveLineController extends Disposable { // If the messages match (or we couldn't find the log), then this is a possible duplicate annotation const possibleDuplicate = !logCommit || logCommit.message === commit.message; // If we don't have a possible dupe or we aren't showing annotations get the hover message - if (!possibleDuplicate || !this.annotationController.isAnnotating(editor)) { + if (!commit.isUncommitted && (!possibleDuplicate || !this.annotationController.isAnnotating(editor))) { hoverMessage = BlameAnnotationFormatter.getAnnotationHover(config, blameLine, logCommit || commit); } }