branch: externals/diff-hl commit 7440baa9b16b1661e41dac8d7be0ffb426524e21 Author: Dmitry Gutov <dmi...@gutov.dev> Commit: Dmitry Gutov <dmi...@gutov.dev>
diff-hl-stage-current-hunk: Force reference revision to last commit Making the diff base either HEAD/tip or index. --- diff-hl.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/diff-hl.el b/diff-hl.el index bce51f460c..99c79718d7 100644 --- a/diff-hl.el +++ b/diff-hl.el @@ -802,7 +802,8 @@ Only supported with Git." (with-current-buffer dest-buffer (let ((inhibit-read-only t)) (erase-buffer))) - (diff-hl-diff-buffer-with-reference file dest-buffer nil 3) + (let (diff-hl-reference-revision) + (diff-hl-diff-buffer-with-reference file dest-buffer nil 3)) (with-current-buffer dest-buffer (with-no-warnings (let (diff-auto-refine-mode)