[SM-Users] [SM-Discuss] Thunderbird plugin for viewing diffs

Jeremy Blosser jblosser-smgl at firinn.org
Fri Apr 27 18:38:47 EDT 2007


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})?"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.ibiblio.org/pipermail/sm-users/attachments/20070427/7e64d856/attachment.bin 


More information about the SM-Users mailing list