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

Re: [PATCH] No color diff when redirecting to file

From
Sascha Peilicke <saschpe@gmx.de>
Date
Jan 24, 2011, 08:56 UTC
Message-ID
<201101240956.27579.saschpe@gmx.de>
In-Reply-To
<201101231547.18529.j6t@kdbg.org>
On Sunday 23 January 2011 15:47:17 you wrote:
Show 12 quoted lines
> The subject line reads as if you want that color markup appears in a file.
> 
> On Sonntag, 23. Januar 2011, Sascha Peilicke wrote:
> > Previously, when having color diffs enabled and redirecting 'git diff'
> > into a file, one ends up with a messed up file containing termcap color
> > stuff. This change disables color when diff output is redirected into a
> > file.
> 
> But this description and the patch read as if you don't want it.
> 
> That said, I cannot reproduce. Perhaps your configuration says
> color.ui=always? If so, then this is expected behavior and not a bug, IMO.
Nope, it's color.ui=auto
-- 
Mit freundlichen Grüßen,
Sascha Peilicke
http://saschpe.wordpress.com
Previous: Matthieu Moy
Message 7 of 7 in “No color diff when redirecting to file”
  1. No color diff when redirecting to fileSascha Peilicke, Jan 23, 2011
  2. Johannes SixtJan 23, 2011
  3. Matthieu MoyJan 23, 2011
  4. Junio C HamanoJan 23, 2011
  5. Sascha PeilickeJan 24, 2011
  6. Matthieu MoyJan 24, 2011
  7. Sascha PeilickeJan 24, 2011

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.