mirror of
https://github.com/conventional-commits/conventionalcommits.org.git
synced 2026-03-12 02:17:21 -05:00
Is the Refs footer supposed to be missing a :? #132
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @daotoad on GitHub (Sep 30, 2021).
The example in the main index.md showing a commit with a Refs footer (https://github.com/conventional-commits/conventionalcommits.org/blob/master/content/v1.0.0/index.md#commit-message-with-multi-paragraph-body-and-multiple-footers) shows no ':' delimiter.
Is that correct? Are there particular footers that are special? Or is this just a typo?
@damianopetrungaro commented on GitHub (Oct 5, 2021):
Fixed @daotoad 😄 !
@runoncedev commented on GitHub (Jan 18, 2022):
Sorry to bring this up but the specifications states:
My interpretation is that a footer should either use one or the other, not both at the same time.
Good:
Bad:
@wtho commented on GitHub (Apr 7, 2022):
@damianopetrungaro I also understand either a : or # separator that it can omit the colon
:if instead#is present.Can you revert the change or, even better, add another example? I think e. g.
Closes #012is a more common example for<token> #<value>thanRefs.@LemmingAvalanche commented on GitHub (Mar 20, 2024):
The
:<space>/<space>#dichotomy comes from the effort to be optionally compatible with git trailers. And git-interpret-trailers(1) made the separator flexible (you can use%<space>for that matter) in order to be compatible with the already established at the timeFixes #98( orFix?) GitHubism.The way that this is handled in git(1) is that you can (1) configure the set of legal separators and (2) tell which separator is used for a specific trailer. (by default
:is the only legal separator.) For exampleI don’t know how this tool handles it in general but I only use
:<space>in order to be compatible with git(1).