Skip to content

Detect TAG_EDITMSG as gitcommit #5

wants to merge 1 commit into from

4 participants



I tend to write (some) tags in the same subject-body format as commits. There's also NOTES_EDITMSG, but I don't think that the commit style really lends itself to that so I left it out.

@jacknagel jacknagel Detect TAG_EDITMSG as gitcommit
Signed-off-by: Jack Nagel <>
tpope commented Mar 1, 2012

Does this really make sense? conf seems more than adequate, and that happens without us doing anything.

If it does, this needs to be squared away with 1b9c234.

guns commented Aug 10, 2012

@tpope How about MERGE_MSG?

Recent versions of git default to interactively editing the merge
commit message (like git merge --edit), which opens .git/MERGE_MSG.
This creates git commit objects, so it seems logical to set the filetype
to gitcommit.


I forgot about this, and I don't really care anymore.

@jacknagel jacknagel closed this Nov 18, 2012

There are situations where I could see this making sense—there are git commands (git tag -n, for example) which show the first line of a tag message by default in a similar "email subject-like" way as other commands show the first line of commit messages, so it seems to follow that they could benefit from an application of the same standards as a commit message.

@tpope tpope added a commit that referenced this pull request Mar 19, 2014
@tpope Highlight TAG_EDITMSG as a commit
References #5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.