[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/diff-hl f20b438: diff-hl-show-hunk-revert-hunk: Revert
From: |
ELPA Syncer |
Subject: |
[elpa] externals/diff-hl f20b438: diff-hl-show-hunk-revert-hunk: Revert the hunk without prompting |
Date: |
Mon, 25 Oct 2021 16:57:18 -0400 (EDT) |
branch: externals/diff-hl
commit f20b438559b2c40b305cf0feb05fe21cff40d536
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
diff-hl-show-hunk-revert-hunk: Revert the hunk without prompting
#173
---
diff-hl-show-hunk.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/diff-hl-show-hunk.el b/diff-hl-show-hunk.el
index c1b2013..f475fc8 100644
--- a/diff-hl-show-hunk.el
+++ b/diff-hl-show-hunk.el
@@ -288,10 +288,11 @@ BUFFER is a buffer with the hunk."
(message "Original hunk content added to kill-ring"))
(defun diff-hl-show-hunk-revert-hunk ()
- "Dismiss the popup and prompt to revert the current diff hunk."
+ "Dismiss the popup and revert the current diff hunk."
(interactive)
(diff-hl-show-hunk-hide)
- (diff-hl-revert-hunk))
+ (let (diff-hl-ask-before-revert-hunk)
+ (diff-hl-revert-hunk)))
;;;###autoload
(defun diff-hl-show-hunk-previous ()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/diff-hl f20b438: diff-hl-show-hunk-revert-hunk: Revert the hunk without prompting,
ELPA Syncer <=