bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#5211: Color escape codes in the output of vc-git-print-log


From: Juanma Barranquero
Subject: bug#5211: Color escape codes in the output of vc-git-print-log
Date: Mon, 14 Dec 2009 17:12:24 +0100

Package: emacs,vc
Tags: patch
Version: 23.1.90
Severity: minor


Depending of your setting of color.diff, color is used for log output,
and vc-print-log shows garbage (OK, escape codes for color):

^[[33mcommit 43a3bf88e5e495ad048b3a6d3cf852e1e7a02f1c^[[m
Author: xxx <yyy@zzz>
Date:   2009-12-14 17:11:35 +0200

    blah blah blah


As color in *vc-change-log* buffers is an issue for font-locking, and
not for git log, the command should be called with --no-color.

OK to the following patch?

    Juanma


2009-12-14  Juanma Barranquero  <lekktu@gmail.com>

        * vc-git.el (vc-git-print-log): Pass --no-color to `git log'.


=== modified file 'lisp/vc-git.el'
--- lisp/vc-git.el      2009-12-08 15:56:57 +0000
+++ lisp/vc-git.el      2009-12-14 16:08:54 +0000
@@ -555,7 +555,7 @@
        (apply 'vc-git-command buffer
               'async files
               (append
-               '("log")
+               '("log" "--no-color")
                (when shortlog
                  '("--graph" "--decorate"
                    "--date=short" "--pretty=format:%d%h  %ad  %s" 
"--abbrev-commit"))






reply via email to

[Prev in Thread] Current Thread [Next in Thread]