Subject: Re: bug#79050: vc-git incorrectly treats git-crypt encrypted files as binary, even when unlocked

From: Sean Whitton <[email-masked]>
Date: Sun, 20 Jul 2025 11:45:32 +0100

Hello James,

Is this enough to fix it?

--8<---------------cut here---------------start------------->8---
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index f462fb1959f..9d351797bef 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -1829,7 +1829,7 @@ vc-git-diff
                (if async 'async 1)
                files
                command
-               "--exit-code"
+               "--exit-code" "--textconv"
                (append (vc-switches 'git 'diff)
                        (list "-p" (or rev1 "HEAD") rev2 "--")))
       (vc-git-command (or buffer "*vc-diff*") 1 files
--8<---------------cut here---------------end--------------->8---

-- 
Sean Whitton