# git-stripspace breakage

2 messages from 2006-04-14 to 2006-04-14. Participants: Linus Torvalds, Junio C Hamano.
Thread: https://gitlist.dev/t/3868

## Linus Torvalds, 2006-04-14 16:40

Subject: git-stripspace breakage
Message-ID: <Pine.LNX.4.64.0604140936520.3701@g5.osdl.org>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0604140936520.3701%40g5.osdl.org

```

Junio,
 the current git-stripspace leaves extra newlines at the end, causing ugly 
commit logs in "git log". I assume/suspect that it's the recent 
"incomplete line" handling (that I acked, bad me), but I didn't actually 
test.

Trivially tested thus:

	[torvalds@g5 git]$ git-stripspace <<EOF
	> a
	> 
	> EOF
	a
	
	[torvalds@g5 git]$ 

note the extra unnecessary newline..

		Linus

```

## Junio C Hamano, 2006-04-14 19:13

Subject: Re: git-stripspace breakage
Message-ID: <7v1ww0q8c8.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7v1ww0q8c8.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <Pine.LNX.4.64.0604140936520.3701@g5.osdl.org>

```
Linus Torvalds <torvalds@osdl.org> writes:

> Junio,
>  the current git-stripspace leaves extra newlines at the end, causing ugly 
> commit logs in "git log". I assume/suspect that it's the recent 
> "incomplete line" handling (that I acked, bad me), but I didn't actually 
> test.

Bad me too indeed.  I noticed it last night after writing
"What's in" message.  Will fix shortly.

Thanks.

```
