git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Best practices/conventions for tags and references in commit message
@ 2014-05-27 11:26 Thomas Koch
  2014-05-27 13:49 ` Johan Herland
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Koch @ 2014-05-27 11:26 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Best practices/conventions for tags and references in commit message
  2014-05-27 11:26 Best practices/conventions for tags and references in commit message Thomas Koch
@ 2014-05-27 13:49 ` Johan Herland
  2014-06-05 14:10   ` Thomas Koch
  0 siblings, 1 reply; 4+ messages in thread
From: Johan Herland @ 2014-05-27 13:49 UTC (permalink / raw)
  To: Thomas Koch; +Cc: Git mailing list

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


...Johan

On Tue, May 27, 2014 at 1:26 PM, Thomas Koch <thomas@koch.ro> wrote:
> 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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Johan Herland, <johan@herland.net>
www.herland.net

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Best practices/conventions for tags and references in commit message
  2014-05-27 13:49 ` Johan Herland
@ 2014-06-05 14:10   ` Thomas Koch
  2014-06-05 16:47     ` Christian Couder
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Koch @ 2014-06-05 14:10 UTC (permalink / raw)
  To: Johan Herland; +Cc: Git mailing list

On Tuesday, May 27, 2014 03:49:24 PM Johan Herland wrote:
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Best practices/conventions for tags and references in commit message
  2014-06-05 14:10   ` Thomas Koch
@ 2014-06-05 16:47     ` Christian Couder
  0 siblings, 0 replies; 4+ messages in thread
From: Christian Couder @ 2014-06-05 16:47 UTC (permalink / raw)
  To: Thomas Koch; +Cc: Johan Herland, Git mailing list

On Thu, Jun 5, 2014 at 4:10 PM, Thomas Koch <thomas@koch.ro> wrote:
> On Tuesday, May 27, 2014 03:49:24 PM Johan Herland wrote:
>> 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.

> 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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-05 16:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-27 11:26 Best practices/conventions for tags and references in commit message Thomas Koch
2014-05-27 13:49 ` Johan Herland
2014-06-05 14:10   ` Thomas Koch
2014-06-05 16:47     ` Christian Couder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).