From: Sean Whitton Date: Fri, 11 Jul 2025 08:13:47 +0000 (+0100) Subject: vc-git-find-revision: Pass --filters to git-cat-file X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ac438d298c0f015ac420ec21bfaa9f1cd2a6b7fc;p=emacs.git vc-git-find-revision: Pass --filters to git-cat-file * lisp/vc/vc-git.el (vc-git-find-revision): Pass --filters to git-cat-file. Problem reported and fix suggested by Oscar Fuentes . (cherry picked from commit 191109e25e51b986e1029b5a5010ced07507a73a) --- diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index 17ba37afcbc..08a3d79b39e 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el @@ -1336,10 +1336,8 @@ It is based on `log-edit-mode', and has Git-specific extensions." (if (string= fn "") (file-relative-name file (vc-git-root default-directory)) (substring fn 0 -1))))) - (vc-git-command - buffer 0 - nil - "cat-file" "blob" (concat (if rev rev "HEAD") ":" fullname)))) + (vc-git-command buffer 0 nil "cat-file" "--filters" "blob" + (concat (or rev "HEAD") ":" fullname)))) (defun vc-git-find-ignore-file (file) "Return the git ignore file that controls FILE."