git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add color to git-add--interactive diffs (Take 2: now without spurious line break!)

From
Andreas Ericsson <ae@op5.se>
Date
Oct 14, 2007, 17:55 UTC
Message-ID
<471257F9.2090705@op5.se>
In-Reply-To
<Pine.LNX.4.64.0710141814100.25221@racer.site>
Johannes Schindelin wrote:
Show 16 quoted lines
> Hi,
> 
> On Sun, 14 Oct 2007, Wincent Colaiuta wrote:
> 
>>> +sub parse_color {
>> You could simplify the manual escape sequence construction that you're 
>> doing here by using Term::ANSIColor like the other patches did. I see 
>> that git-send-email.perl uses that module too, so I guess depending on 
>> that module is ok.
> 
> Wrong.  Depending on that module is not correct, you always have to wrap 
> it into an "if (<is_color>) {...}".
> 
> I use git add -i quite often, and I _never_ use git send-email.  My guess 
> is that I am not alone with that.
> 

Not by a longshot, no. Personally I find git-send-email so tricky to use I've rolled my own sender. I circulated it on the list a year or so back, but it's not nearly so feature-full as git-send-email, so it never got much of an audience.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Johannes SchindelinNext: Wincent Colaiuta
Message 4 of 9 in “Add color to git-add--interactive diffs (Take 2: now without spurious line break!)”
  1. Add color to git-add--interactive diffs (Take 2: now without spurious line break!)Tom Tobin, Oct 14, 2007
  2. Wincent ColaiutaOct 14, 2007
  3. Johannes SchindelinOct 14, 2007
  4. Andreas EricssonOct 14, 2007
  5. Wincent ColaiutaOct 14, 2007
  6. Peter BaumannOct 22, 2007
  7. Johannes SchindelinOct 22, 2007
  8. Peter BaumannOct 23, 2007
  9. Johannes SchindelinOct 23, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.