views:

169

answers:

2

Sometimes when I do a pull instead of a rebase after a simple one file change commit I see the following in the master log:

Trivial merge

But there's no diff of what changed? What's the point of this log message? Did anything change I don't know of? It scares me.

+2  A: 

git merge's help page (the one you get by typing "git help merge") states:

you received the same patch from an external source to produce the same result as what you are merging

Jani Hartikainen
I'm not sure where you found this, but this hasn't been part of the git merge help page since v1.5.*.
Charles Bailey
+4  A: 

git doesn't insert this message into the log at any point. I'm going to take a wild guess and assume that you've seen this message in gitweb.

gitweb prints this message if there is no output from a combined diff. This happens when the only differences were all in chunks were only one side of the merge changed, and this change was brought through unmodified in the merge. This basically means there were no conflicts and nothing magic was added in the merge commit.

Charles Bailey