Skip to content

perlhack: We use p.r's, not issue tracker; clarify commit msgs#24134

Open
khwilliamson wants to merge 2 commits intoPerl:bleadfrom
khwilliamson:commit_msgs
Open

perlhack: We use p.r's, not issue tracker; clarify commit msgs#24134
khwilliamson wants to merge 2 commits intoPerl:bleadfrom
khwilliamson:commit_msgs

Conversation

@khwilliamson
Copy link
Contributor

This adds extensive discussion about what to put in a commit message, and especially the title.

  • This set of changes does not require a perldelta entry.

This splits the explanation of a commit message into 1) title and 2)
body, adding significant details.
@jkeenan
Copy link
Contributor

jkeenan commented Jan 30, 2026

I do not approve of this pull request.

My initial reaction is: It doesn't practice what it preaches. Its subject line largely consists of "We use p.r's, not issue tracker" -- but the pull request itself only mentions 'issue tracker' in the deletion of two lines from the existing documentation.

More generally, what constitutes a good commit message is something that is always going to be up for argument. The content of this pull request would make a great post on a blog, but it's not something I think we need to codify in our official documentation at this time.

@guest20
Copy link

guest20 commented Jan 31, 2026

Quoth @jkeenan

what constitutes a good commit message is something that is always going to be up for argument

That sounds like a very good reason to document the standards.

the body can be omitted if the title adequately describes the change.
In such cases, you can use a git shortcut to create the commit:

% git -a -m'perlhack: Fix spelling error'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing "commit"

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might also be a good idea to not recommend -a, since it attracts cruft in commits...

Comment on lines 327 to 339
% git -a -m'Use getentropy() for seeding PRNG in Perl_seed()'

In a few cases, a file:

% git -a -m'embed.fnc: Add pointer assertions for refcounted functions'

Sometimes, a module:

% git -a -m'Devel::PPPort: Add support for utf8_to_uv'

And rarely, entirely omitted:

% git -a -m'Add feature "class"'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Several missing "commit' from "git commit"

Comment on lines +361 to +363
% git -a -m'"Where": Add/clarify comments"
% git -a -m'"Where": Use more mnemonic variable name"
% git -a -m'"Where": Move ARGS_ASSERT to top of function"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And more missing "commit"

=item * Why

Your commit message should describe why the change you are making is
The message body should describe why the change you are making is
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be worth mentioning the "Fixes #..." magic, which serves a few purposes:

  • it mentions the ticket number (part of "Why")
  • it closes the ticket once the PR is merged
  • someone who views the ticket sees the link to the PR too

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's also worth mentioning that only including the ticket reference / number / url and nothing else can result in not being able to find issues in the far future when the team/queue/ticket system goes away.

@guest20
Copy link

guest20 commented Feb 2, 2026

Couple of quick ones:

  • Should these PRs explicitly target bleed⸸?
  • What's the difference between perlhack, perlgit, and perlpolicy again?
  • Why is the "Super quick start guide" eleven steps and nearly 2 pages?
    __
    ⸸. and isn't it insensitive to haemophiliacs to call the branch bleed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants