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

[StGit] How do I get colored diff output?

From
PBPeter Baumann <waste.manager@gmx.de>
Date
Aug 30, 2007, 12:32 UTC
Message-ID
<20070830123222.GG5050@xp.machine.xx>
Hi,

Is there a way to get colored diff output, preferable from the native git diff without having to specify stg diff -O --color everytime? It seems that stg doesn't honor color.diff config entry, so I am a little lost.

(And yes I now that I could use the pager setting given in examples/gitconfig,
	stgit.pager = filterdiff --annotate | colordiff | less -FRX
 but I really prefere the native git coloring, which looks a loot nicer
 and does also highlight traling whitespace)
-Peter
Next: Catalin Marinas
Message 1 of 5 in “[StGit] How do I get colored diff output?”
  1. Peter BaumannAug 30, 2007
  2. Catalin MarinasAug 30, 2007
  3. Peter BaumannAug 30, 2007
  4. Jakub NarebskiAug 30, 2007
  5. Catalin MarinasAug 31, 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.