File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -916,7 +916,9 @@ buffer will show the position corresponding to its current line."
916916 (file-relative-name file rootdir))))
917917 (error " Directory is not version controlled " ))
918918 (setq fileset (or fileset (vc-deduce-fileset )))
919- (vc-buffer-sync-fileset fileset t )
919+ (static-if (< emacs-major-version 28 )
920+ (vc-maybe-buffer-sync)
921+ (vc-buffer-sync-fileset fileset t ))
920922 (let* ((line (line-number-at-pos )))
921923 (vc-diff-internal
922924 (if (boundp 'vc-allow-async-diff )
@@ -1763,6 +1765,7 @@ effect."
17631765
17641766; ; Commands below will only work with recent enough project.el.
17651767(declare-function project-name " project" )
1768+ (declare-function project-buffers " project" )
17661769
17671770(defun diff-hl-set-reference-rev-in-project-internal (rev proj )
17681771 (let* ((root (diff-hl--project-root proj)))
You can’t perform that action at this time.
0 commit comments