]> git.eshelyaron.com Git - emacs.git/commitdiff
vc-git: Ensure git doesn't try to colorize stashes
authorMorgan Smith <Morgan.J.Smith@outlook.com>
Wed, 9 Nov 2022 21:16:55 +0000 (16:16 -0500)
committerStefan Kangas <stefankangas@gmail.com>
Sat, 12 Nov 2022 19:34:50 +0000 (20:34 +0100)
* lisp/vc/vc-git.el (vc-git-stash-show): Add --color=never to git
flags.  (Bug#59158)

lisp/vc/vc-git.el

index 74536309e2927a7e12899b6ec7055cce76879acc..a1ff03144bcd3d3fb5f737d23564aa18cade3cbc 100644 (file)
@@ -1883,7 +1883,8 @@ This command shares argument histories with \\[rgrep] and \\[grep]."
   "Show the contents of stash NAME."
   (interactive (list (vc-git-stash-read "Show stash: ")))
   (vc-setup-buffer "*vc-git-stash*")
-  (vc-git-command "*vc-git-stash*" 'async nil "stash" "show" "-p" name)
+  (vc-git-command "*vc-git-stash*" 'async nil
+                  "stash" "show" "--color=never" "-p" name)
   (set-buffer "*vc-git-stash*")
   (setq buffer-read-only t)
   (diff-mode)