From 395c61e8678a0a08fa1328de695c56e69a1eba9b Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sun, 31 Jan 2021 01:58:18 -0500 Subject: [PATCH] Allows undo for any tip commit --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 6811afc..268833c 100644 --- a/package.json +++ b/package.json @@ -7177,7 +7177,7 @@ }, { "command": "gitlens.views.undoCommit", - "when": "!gitlens:readonly && viewItem =~ /gitlens:commit\\b(?=.*?\\b\\+HEAD\\b)(?=.*?\\b\\+unpublished\\b)/", + "when": "!gitlens:readonly && viewItem =~ /gitlens:commit\\b(?=.*?\\b\\+HEAD\\b)/", "group": "inline@95" }, { @@ -7382,7 +7382,7 @@ }, { "command": "gitlens.views.undoCommit", - "when": "!gitlens:readonly && viewItem =~ /gitlens:commit\\b(?=.*?\\b\\+HEAD\\b)(?=.*?\\b\\+unpublished\\b)/", + "when": "!gitlens:readonly && viewItem =~ /gitlens:commit\\b(?=.*?\\b\\+HEAD\\b)/", "group": "1_gitlens_actions@1" }, { @@ -7463,7 +7463,7 @@ }, { "command": "gitlens.views.undoCommit", - "when": "!gitlens:readonly && viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)(?=.*?\\b\\+HEAD\\b)(?=.*?\\b\\+unpublished\\b)/", + "when": "!gitlens:readonly && viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)(?=.*?\\b\\+HEAD\\b)/", "group": "inline@-2" }, {