vc-git: Ensure git doesn't try to colorize stashes
* lisp/vc/vc-git.el (vc-git-stash-show): Add --color=never to git flags. (Bug#59158)
This commit is contained in:
parent
d794f1d3f2
commit
4ccc385ab1
1 changed files with 2 additions and 1 deletions
|
@ -1883,7 +1883,8 @@ This command shares argument histories with \\[rgrep] and \\[grep]."
|
||||||
"Show the contents of stash NAME."
|
"Show the contents of stash NAME."
|
||||||
(interactive (list (vc-git-stash-read "Show stash: ")))
|
(interactive (list (vc-git-stash-read "Show stash: ")))
|
||||||
(vc-setup-buffer "*vc-git-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*")
|
(set-buffer "*vc-git-stash*")
|
||||||
(setq buffer-read-only t)
|
(setq buffer-read-only t)
|
||||||
(diff-mode)
|
(diff-mode)
|
||||||
|
|
Loading…
Add table
Reference in a new issue