Re: [PATCH] Colorized git log

2005-04-21 Thread Steven Cole
On Thursday 21 April 2005 06:54 pm, Petr Baudis wrote: > Duh. And they say "Where possible terminfo is consulted to find the > string to use." in their manual page. :/ > > > gitlog.sh: 6d24d857fb6c2f7e810954adaca1990599906f07 > > --- a/gitlog.sh > > +++ b/gitlog.sh > > @@ -11,11 +11,11 @@ > > >

Re: [PATCH] Colorized git log

2005-04-21 Thread Daniel Serpell
Hi! On 4/21/05, Petr Baudis <[EMAIL PROTECTED]> wrote: > Dear diary, on Fri, Apr 22, 2005 at 02:46:19AM CEST, I got a letter > where Daniel Serpell <[EMAIL PROTECTED]> told me that... > > > > This has two problems, solved in two patches: > > could you please sign them off? Ok, here are, resent (

Re: [PATCH] Colorized git log

2005-04-21 Thread Petr Baudis
Dear diary, on Fri, Apr 22, 2005 at 02:46:19AM CEST, I got a letter where Daniel Serpell <[EMAIL PROTECTED]> told me that... > Hi! Hi, > On 4/21/05, Petr Baudis <[EMAIL PROTECTED]> wrote: > > > > I made git log colorized if you pass it -c in current git-pasky. > > > > This has two problems, s

[PATCH] Colorized git log

2005-04-21 Thread Daniel Serpell
Hi! On 4/21/05, Petr Baudis <[EMAIL PROTECTED]> wrote: > > I made git log colorized if you pass it -c in current git-pasky. > This has two problems, solved in two patches: * A space is added in front of header lines when you use color. * It does not work in my (Debian) xterm. This is because

Re: Colorized git log

2005-04-21 Thread Petr Baudis
Dear diary, on Thu, Apr 21, 2005 at 11:12:45PM CEST, I got a letter where Sean <[EMAIL PROTECTED]> told me that... > On the off chance that someone else might like it, here is a pager script > for the git log that adds a splash of color: Actually, I would've never expected that I would like it, bu

Colorized git log

2005-04-21 Thread Sean
On the off chance that someone else might like it, here is a pager script for the git log that adds a splash of color: #!/bin/sh git log "$@" | sed -re ' /.*signed-off-by.*/Is//\x1b[34m&\x1b[0m/ /^--*$/Is//\x1b[31m&\x1b[0m/ /^(commit|tree|parent) .*/Is//\x1b[32m&\x1b[0m/ /^aut