diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2009-12-28 03:43:28 +0100 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2009-12-28 03:43:28 +0100 |
commit | 880c27213510b540002660212fdc2f917b134321 (patch) | |
tree | fb560032a88c15c28f9eac7ecb6a6f8d5676d0a3 | |
parent | 43c31f686c3ffe53dade93ffc7e572199dfd275a (diff) | |
download | emacs-880c27213510b540002660212fdc2f917b134321.tar.gz |
Supersede color.diff settings in git log (bug#5211).
-rw-r--r-- | lisp/ChangeLog | 8 | ||||
-rw-r--r-- | lisp/vc-git.el | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 63f754bbd9e..4f06b54124c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,11 @@ +2009-12-28 Juanma Barranquero <lekktu@gmail.com> + + Supersede color.diff settings in git log (bug#5211). + + * vc-git.el (vc-git-print-log): Pass "--no-color" to log to avoid + escape chars in its output when the user has color.diff set to `always'. + This fix works on git 1.4.2 and newer (released on 2006-08-13). + 2009-12-26 Kevin Ryde <user42@zip.com.au> * info-look.el (sh-mode): Look for coreutils new "Concept Index" diff --git a/lisp/vc-git.el b/lisp/vc-git.el index 69e861434ba..1970cb1460a 100644 --- a/lisp/vc-git.el +++ b/lisp/vc-git.el @@ -555,7 +555,7 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches." (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")) |