sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
Re: [SM-Discuss] Thunderbird plugin for viewing diffs
- From: Jeremy Blosser <jblosser-smgl AT firinn.org>
- To: SM-Discuss <sm-discuss AT lists.ibiblio.org>, SM-Users <sm-users AT lists.ibiblio.org>
- Subject: Re: [SM-Discuss] Thunderbird plugin for viewing diffs
- Date: Fri, 27 Apr 2007 17:38:47 -0500
On Apr 25, Eric Sandall [eric AT sandall.us] wrote:
> For all you Thunderbird users,
>
> If you view diffs (such as those in SM-Commit[0]) you may like the
> colored diffs plugin by Vadim Atlygin[1], which allows colored unified
> diffs or, my favourite, side-by-side view (not quite as nice as meld,
> but it's still handy). This makes reviewing our commits much easer (at
> least for me ;)).
And for people using mutt, here's a draft of some diff/commit mail
colorizing. It has some issues, namely that it isn't context-aware so will
tend to color all lines that start with + or -, but I figured I'd dump it
here vs. sitting on it until it's perfect. If you put all your commit
mails in a separate mailbox you probably won't mind anyway.
Some of these colors probably only look decent on with the hacked color
definitions I use locally, but they're easy to change to whatever you want.
color body cyan default "^[> ]*diff .+"
color body magenta default "^[> ]*@@ .+"
color body magenta default "^[> ]*Binary files .+ differ"
color body green default "^[> ]*\\+.*"
color body red default "^[> ]*-.*"
color body white default "^[> ]*GIT changes to .* by"
color body blue default "[0-9]+ files? changed"
color body green default "[0-9]+ insertions?\\(\\+\\)"
color body red default "[0-9]+ deletions?\\(-\\)"
color body white default "^[> ]*New commits:"
color body blue default "(cherry picked from )?commit
[0-9a-f]{40}"
color body cyan default "^[> ]*Author: [^<]+[^ <]"
color body cyan brightdefault "^[> ]*Commit: [^<]+[^ <]"
color body red brightdefault "^[> ]*deleted file mode [0-9]{6}"
color body green brightdefault "^[> ]*new file mode [0-9]{6}"
color body brightblack default "^[> ]*index
[0-9a-f]{7}\\.\\.[0-9a-f]{7}([0-9]{6})?"
Attachment:
pgpKSxL0gZ1_C.pgp
Description: PGP signature
-
[SM-Discuss] Thunderbird plugin for viewing diffs,
Eric Sandall, 04/25/2007
- Re: [SM-Discuss] Thunderbird plugin for viewing diffs, Jeremy Blosser, 04/27/2007
Archive powered by MHonArc 2.6.24.