Is "Merged in" a commit message created by bitbucket, or git?

1.2k views Asked by At

The style guide "How to Write a Git Commit Message" section 5. Use the imperative mood in the subject line states that git itself uses the imperative mood:

The imperative can sound a little rude; that's why we don't often use it. But it's perfect for git commit subject lines. One reason for this is that git itself uses the imperative whenever it creates a commit on your behalf.

For example, the default message created when using git merge reads:

Merge branch 'myfeature'

And when using git revert:

Revert "Add the thing with the stuff"

This reverts commit cc87791524aedd593cff5a74532befe7ab69ce9d.

Or when clicking the "Merge" button on a GitHub pull request:

Merge pull request #123 from someuser/somebranch

However, on a git repository on bitbucket, I encounter the indicative mood:

Merged in feature/123 (pull request #1234)

Is this a message created by bitbucket as opposed to git?

1

There are 1 answers

0
ericodes On

From looking at my team's branch, when someone merges their own PR, you see

"Merge branch 'branchName' of bitbucket.org...".

When someone merges someone else's PR, you see

"Merged in teamName/repositoryName/branchName"