From: Peter Baumann <waste.manager@gmx.de>
To: Catalin Marinas <catalin.marinas@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [StGit] How do I get colored diff output?
Date: Thu, 30 Aug 2007 15:59:09 +0200 [thread overview]
Message-ID: <20070830135909.GH5050@xp.machine.xx> (raw)
In-Reply-To: <tnx3ay1w40p.fsf@arm.com>
On Thu, Aug 30, 2007 at 02:22:46PM +0100, Catalin Marinas wrote:
> 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
next prev parent reply other threads:[~2007-08-30 13:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-30 12:32 [StGit] How do I get colored diff output? Peter Baumann
2007-08-30 13:22 ` Catalin Marinas
2007-08-30 13:59 ` Peter Baumann [this message]
2007-08-30 16:57 ` Jakub Narebski
2007-08-31 15:14 ` Catalin Marinas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070830135909.GH5050@xp.machine.xx \
--to=waste.manager@gmx.de \
--cc=catalin.marinas@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).