Stop showing git scripts changes, unless the base is master

In legacy/trac#29588 (moved), we made the pre-merge script log changes to the git scripts.

But it logs (the wrong) changes when I'm merging into maint-0.4.1 or earlier.

Let's just make it log changes when it's merging into master?