Skip to contentSkip to conversation

Best practices/conventions for tags and references in commit message

DISCUSSION Thomas Koch 3 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

different projects or tools have conventions to include machine parsable information in commit messages, e.g.:

Closes: #42
Thanks: my mother, my wife
Git-Dch: Ignore
Commit-Id: 50M3R34LLYR4ND0MB1TSANDNUMB3R5

(see thread: "RFE: support change-id generation natively" for Commit-Id) ("Git-Dch: Ignore" ecludes the commit from the changelog)

Are you aware of any convention or best practices for such tags that are used in more than one project? Are there more tags like these?

Maybe it would also be helpful to have some more plumbing support from Git for such tags. But I've not yet thought enough about this.

Best regards, Thomas Koch

#1 lore raw

Search the mailing list archives for git-interpret-trailers. It's coming. :)

...Johan

Quoted 24 lines · Thomas Koch

Hi,

different projects or tools have conventions to include machine parsable information in commit messages, e.g.:

Closes: #42
Thanks: my mother, my wife
Git-Dch: Ignore
Commit-Id: 50M3R34LLYR4ND0MB1TSANDNUMB3R5

(see thread: "RFE: support change-id generation natively" for Commit-Id) ("Git-Dch: Ignore" ecludes the commit from the changelog)

Are you aware of any convention or best practices for such tags that are used in more than one project? Are there more tags like these?

Maybe it would also be helpful to have some more plumbing support from Git for such tags. But I've not yet thought enough about this.

Best regards, Thomas Koch
--
To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
Johan Herland, <[email protected]>
www.herland.net
#2 lore raw
Quoted 1 line · Johan Herland

Search the mailing list archives for git-interpret-trailers. It's coming.

Nice!

I started a table to collect how different projects or tools use trailers:
https://git.wiki.kernel.org/index.php/CommitMessageConventions#Trailers

It would be nice to see more examples and in the long run to have some best practices recommended by gits documentation and supported across different bug trackers, changelog generators, statistic generators, repository viewers, etc..

Regards,

Thomas Koch

#3 lore raw
Quoted 6 lines · Thomas Koch
Quoted 1 line · Johan Herland

Search the mailing list archives for git-interpret-trailers. It's coming.

Nice!

I started a table to collect how different projects or tools use trailers:
https://git.wiki.kernel.org/index.php/CommitMessageConventions#Trailers

Great!

It would be even better if you could add links to one or more actual commits that contain the specified trailer.

For example for openstack, it would be nice to have real examples of DocImpact, SecurityImpact and UpgradeImpact.

Quoted 4 lines

It would be nice to see more examples and in the long run to have some best practices recommended by gits documentation and supported across different bug trackers, changelog generators, statistic generators, repository viewers, etc..

Yeah, what is also interesting is that some people/projects/tools use things that are in some ways trailer like. For example GitHub parses commit messages for things like "fix #1234" and there are also people adding refs at the end of commit messages like:

[1] http://www.example.com/example_ref.html

Thanks,
Christian.