# [POSSIBLE BUG] 'git log' option --no-color adds bogus empty line

3 messages from 2007-10-27 to 2007-10-27. Participants: Marco Costalba, Johannes Gilger.
Thread: https://gitlist.dev/t/10484

## Marco Costalba, 2007-10-27 09:10

Subject: [POSSIBLE BUG] 'git log' option --no-color adds bogus empty line
Message-ID: <e5bfff550710270210g6d363b40of597c3160124fb85@mail.gmail.com>
URL: https://gitlist.dev/e/e5bfff550710270210g6d363b40of597c3160124fb85%40mail.gmail.com

```
Form git tree:

$ git log -n 1 8d863c98b2f9b0d37 | wc
      7      28     246

$ git log --no-color -n 1 8d863c98b2f9b0d37 | wc
      8      28     247

$ git --version
git version 1.5.3.2.124.g648db

What's worst is that when using --log-size option, the size is always
the same (198 in this case) breaking qgit parsing when --no-color
option is used.

BTW --no-color option is needed to correctly handle repositories where
"diff.color = true" in the configuration as pointed out (and patched)
by Yaacov Akiba Slama.

Thanks
Marco

```

## Johannes Gilger, 2007-10-27 09:36

Subject: Re: [POSSIBLE BUG] 'git log' option --no-color adds bogus empty line
Message-ID: <472306BA.5060409@hackvalue.de>
URL: https://gitlist.dev/e/472306BA.5060409%40hackvalue.de
In-Reply-To: <e5bfff550710270210g6d363b40of597c3160124fb85@mail.gmail.com>

```
Marco Costalba wrote:
> Form git tree:
> 
> $ git log -n 1 8d863c98b2f9b0d37 | wc
>       7      28     246
> 
> $ git log --no-color -n 1 8d863c98b2f9b0d37 | wc
>       8      28     247
> 
> $ git --version
> git version 1.5.3.2.124.g648db

Hi,

using git version 1.5.3.4.383.gd90a7 i can't confirm this, the two
outputs are of the same length here.

Regards,
Johannes

-- 
Johannes Gilger <heipei@hackvalue.de>
http://hackvalue.de/heipei/
GPG-Key: 0x42F6DE81
GPG-Fingerprint: BB49 F967 775E BB52 3A81  882C 58EE B178 42F6 DE81

```

## Marco Costalba, 2007-10-27 10:01

Subject: Re: [POSSIBLE BUG] 'git log' option --no-color adds bogus empty line
Message-ID: <e5bfff550710270301j5b5bb946w3ab6dd89d0543171@mail.gmail.com>
URL: https://gitlist.dev/e/e5bfff550710270301j5b5bb946w3ab6dd89d0543171%40mail.gmail.com
In-Reply-To: <472306BA.5060409@hackvalue.de>

```
On 10/27/07, Johannes Gilger <heipei@hackvalue.de> wrote:
> Marco Costalba wrote:
> > Form git tree:
> >
> > $ git log -n 1 8d863c98b2f9b0d37 | wc
> >       7      28     246
> >
> > $ git log --no-color -n 1 8d863c98b2f9b0d37 | wc
> >       8      28     247
> >
> > $ git --version
> > git version 1.5.3.2.124.g648db
>
> Hi,
>
> using git version 1.5.3.4.383.gd90a7 i can't confirm this, the two
> outputs are of the same length here.
>

Yes. With the latest git everything works as expected.

Sorry fo rthe noise!

Marco

```
