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 ca4391f commit b6d9e3eCopy full SHA for b6d9e3e
1 file changed
diff-hl.el
@@ -1538,7 +1538,8 @@ The diffs are computed in the buffer DEST-BUFFER. This requires
1538
the `diff-program' to be in your `exec-path'.
1539
CONTEXT-LINES is the size of the unified diff context, defaults to 0."
1540
(require 'diff)
1541
- (vc-ensure-vc-buffer)
+ (unless (or backend (vc-backend file))
1542
+ (error "File %s is not under version control" file))
1543
(save-current-buffer
1544
(let* ((dest-buffer (or dest-buffer "*diff-hl-diff-buffer-with-reference*"))
1545
(backend (or backend (vc-backend file)))
0 commit comments