all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#51262: [PATCH] Don't use color escape sequences in `vc-git-expanded-log-entry'
@ 2021-10-18 10:45 Jan Synáček
  2021-10-19  5:16 ` Stefan Kangas
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Synáček @ 2021-10-18 10:45 UTC (permalink / raw)
  To: 51262

[-- Attachment #1: Type: text/plain, Size: 20 bytes --]

-- 
Jan Synáček

[-- Attachment #2: 0001-Don-t-use-color-escape-sequences-in-vc-git-expanded-.patch --]
[-- Type: text/x-patch, Size: 935 bytes --]

From acbfec361709c5eebafb9a957e76f70500083cf0 Mon Sep 17 00:00:00 2001
From: Jan Synacek <jan.synacek@gmail.com>
Date: Mon, 18 Oct 2021 12:34:38 +0200
Subject: [PATCH] Don't use color escape sequences in
 `vc-git-expanded-log-entry'

* lisp/vc/vc-git.el (vc-git-expanded-log-entry): Use --no-color in git
invocation.

Copyright-paperwork-exempt: yes
---
 lisp/vc/vc-git.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index 35c0838dd6..3f89fad235 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -1323,7 +1323,7 @@ vc-git-show-log-entry
 
 (defun vc-git-expanded-log-entry (revision)
   (with-temp-buffer
-    (apply #'vc-git-command t nil nil (list "log" revision "-1" "--"))
+    (apply #'vc-git-command t nil nil (list "log" revision "-1"  "--no-color" "--"))
     (goto-char (point-min))
     (unless (eobp)
       ;; Indent the expanded log entry.
-- 
2.33.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-10-19 18:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-18 10:45 bug#51262: [PATCH] Don't use color escape sequences in `vc-git-expanded-log-entry' Jan Synáček
2021-10-19  5:16 ` Stefan Kangas
2021-10-19  8:15   ` Jan Synáček
2021-10-19  8:33     ` Stefan Kangas
2021-10-19  8:53       ` Jan Synáček
2021-10-19 18:00         ` Stefan Kangas

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.