Warn against `hg commit --amend -m` in the contribution docs
Categories
(Developer Infrastructure :: Source Documentation, enhancement)
Tracking
(firefox89 fixed)
Tracking | Status | |
---|---|---|
firefox89 | --- | fixed |
People
(Reporter: mgaudet, Assigned: mgaudet)
References
Details
Attachments
(1 file)
See Bug 1703032 for a description of the thing we're trying to avoid;
Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Pushed by mgaudet@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ca08f26c6106 Warn against `hg commit --amend -m` in the contribution docs r=firefox-source-docs-reviewers,sylvestre,championshuttler
Comment 3•3 years ago
|
||
Looks like I was too late to the review, but hg amend
or git commit --amend -CHEAD
are alternatives that re-use the full commit message.
Comment 4•3 years ago
|
||
I was also thinking why dont people use directly hg commit --amend --no-edit, I use this everytime I make changes to exisiting revision or their usecase is different? Can you confirm :mgaudet
Assignee | ||
Comment 5•3 years ago
|
||
So the specific case I see is this: A new contributor is asked to change their commit message; the bring knowledge from Git or GitHub like workflows, and just go hg commit --amend -m "Bug XYZ - Updated Message r?reviewer"
; but as hinted, this then blows up. This really is the direct use case where changing the commit message is in fact part of the goal, to your point about why not --no-edit
Comment 6•3 years ago
|
||
bugherder |
Updated•2 years ago
|
Description
•