# git-fmt-merge-msg cleanup

2 messages from 2006-03-09 to 2006-03-09. Participants: Linus Torvalds, Junio C Hamano.
Thread: https://gitlist.dev/t/3605

## Linus Torvalds, 2006-03-09 01:56

Subject: git-fmt-merge-msg cleanup
Message-ID: <Pine.LNX.4.64.0603081753270.32577@g5.osdl.org>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0603081753270.32577%40g5.osdl.org

```

Since I've started using the "merge.summary" flag in my repo, my merge 
messages look nicer, but I dislike how I get notifications of merges 
within merges.

So I'd suggest this trivial change..

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
----
diff --git a/git-fmt-merge-msg.perl b/git-fmt-merge-msg.perl
index dae383f..afe80e6 100755
--- a/git-fmt-merge-msg.perl
+++ b/git-fmt-merge-msg.perl
@@ -47,7 +47,7 @@ sub current_branch {
 sub shortlog {
 	my ($tip) = @_;
 	my @result;
-	foreach ( qx{git-log --topo-order --pretty=oneline $tip ^HEAD} ) {
+	foreach ( qx{git-log --no-merges --topo-order --pretty=oneline $tip ^HEAD} ) {
 		s/^[0-9a-f]{40}\s+//;
 		push @result, $_;
 	}

```

## Junio C Hamano, 2006-03-09 02:27

Subject: Re: git-fmt-merge-msg cleanup
Message-ID: <7vzmk0fj2w.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vzmk0fj2w.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <Pine.LNX.4.64.0603081753270.32577@g5.osdl.org>

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

> Since I've started using the "merge.summary" flag in my repo, my merge 
> messages look nicer, but I dislike how I get notifications of merges 
> within merges.
>
> So I'd suggest this trivial change..

Makes sense.  Thanks.

```
