Variable: vc-coding-system-inherit-eol
vc-coding-system-inherit-eol is a variable defined in vc.el.gz.
Value
t
Documentation
When non-nil, inherit the EOL format for reading Diff output from the file.
Used in vc-coding-system-for-diff to determine the EOL format to use
for reading Diff output for a file. If non-nil, the EOL format is
inherited from the file itself.
Set this variable to nil if your Diff tool might use a different
EOL. Then Emacs will auto-detect the EOL format in Diff output, which
gives better results.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc.el.gz
;;; Additional entry points for examining version histories
;; (defun vc-default-diff-tree (backend dir rev1 rev2)
;; "List differences for all registered files at and below DIR.
;; The meaning of REV1 and REV2 is the same as for `vc-revision-diff'."
;; ;; This implementation does an explicit tree walk, and calls
;; ;; vc-BACKEND-diff directly for each file. An optimization
;; ;; would be to use `vc-diff-internal', so that diffs can be local,
;; ;; and to call it only for files that are actually changed.
;; ;; However, this is expensive for some backends, and so it is left
;; ;; to backend-specific implementations.
;; (setq default-directory dir)
;; (vc-file-tree-walk
;; default-directory
;; (lambda (f)
;; (vc-run-delayed
;; (let ((coding-system-for-read (vc-coding-system-for-diff f)))
;; (message "Looking at %s" f)
;; (vc-call-backend (vc-backend f)
;; 'diff (list f) rev1 rev2))))))
(defvar vc-coding-system-inherit-eol t
"When non-nil, inherit the EOL format for reading Diff output from the file.
Used in `vc-coding-system-for-diff' to determine the EOL format to use
for reading Diff output for a file. If non-nil, the EOL format is
inherited from the file itself.
Set this variable to nil if your Diff tool might use a different
EOL. Then Emacs will auto-detect the EOL format in Diff output, which
gives better results.") ;; Cf. bug#4451.