Is it legitimate to use that second revert commit, which was never pushed, to do the additional work, changing the title to something reasonable? If not, could you explain what I ought to do?
_______________________________________________
LLVM Developers mailing list
llvm...@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
This morning I pushed a commit that killed the build, so I reverted it and pushed the new commit to fix the build. Then I did another revert to get my changes back so I can work on them some more.
Is it legitimate to use that second revert commit, which was never pushed, to do the additional work, changing the title to something reasonable? If not, could you explain what I ought to do?
Some new contributors tend to make reverts without a justification.
https://llvm.org/docs/DeveloperPolicy.html#commit-messages actually has
a somewhat related sentence but it is probably buried in a long document.
"If the commit is a bug fix on top of another recently committed patch,
or a revert or reapply of a patch, include the git commit hash of the
prior related commit. This could be as simple as “Revert commit NNNN
because it caused PR#”."
There are some other undocumented good practices, e.g.
* If the patch may take some time to reland or miss something more than
simple test tweaks, consider reopening the differential and (if
requires further review) requesting for changes.
* `git cherry-pick`. Make sure `Differential Revision: ` is in the
reland commit so that it is connected to the original differential.
At 1/25/2021 05:23 PM, Fangrui Song wrote:
>* If the patch may take some time to reland or miss something more than
> simple test tweaks, consider reopening the differential and (if
> requires further review) requesting for changes.
_______________________________________________
Why did I not notice that before? Weird. Thanks!