emacs-devel
[Top][All Lists]
Advanced

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

Re: PATCH: vc-git-grep: force git-grep to disable color and pager


From: Davis Herring
Subject: Re: PATCH: vc-git-grep: force git-grep to disable color and pager
Date: Wed, 25 Sep 2013 11:08:39 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110717 Lanikai/3.1.11

> This commit adds some command line options to the invocation of `git'
> in `vc-git-grep' so that git disables all coloring and paging. Without
> this, I get a warning about my "terminal" not being fully functional
> and git-grep attempts to use a pager (which means the git-grep process
> never finishes):
> 
>     git grep -n -e stuff -- *
>     WARNING: terminal is not fully functional
>      CREDITS:14:D: Alpha systems hacking, IPv6 and other network related stuff
>     <snip>
>     :  <-- pager waiting for me to do something

All this (including the warning) is the use of less, not the coloring
(although git might in theory complain if you try to use coloring with
no TERM variable or so).  I'd recommend using --no-pager but trying to
interpret the color rather than suppressing it.

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.



reply via email to

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