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

Re: [StGit] How do I get colored diff output?

From
PBPeter Baumann <waste.manager@gmx.de>
Date
Aug 30, 2007, 13:59 UTC
Message-ID
<20070830135909.GH5050@xp.machine.xx>
In-Reply-To
<tnx3ay1w40p.fsf@arm.com>
On Thu, Aug 30, 2007 at 02:22:46PM +0100, Catalin Marinas wrote:
Show 21 quoted lines
> Peter Baumann <waste.manager@gmx.de> wrote:
> > 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)
> 
> There isn't any other way at the moment. There were ideas of adding
> support for default command line options for various commands but I
> haven't looked at this.
> 
> I now tried the example stgit.pager option and it looks bad indeed. In
> the meantime, there is a diffcol.sh script in the contrib directory, I
> use this instead and it looks much nicer.
> 
Ah. I didn't find that while searching for the color ouput.

Thx for your help, Peter

Previous: Catalin MarinasNext: Jakub Narebski
Message 3 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.