[Sound-open-firmware] Commits in SOF

Pierre-Louis Bossart pierre-louis.bossart at linux.intel.com
Tue May 28 18:23:38 CEST 2019



On 5/28/19 9:42 AM, Liam Girdwood wrote:
> On Tue, 2019-05-28 at 17:26 +0300, Daniel Baluta wrote:
>> Hello all,
>>
>> I have few comments about commits in SOF FW which
>> I think might improve the review quality.
>>
>> 1) I've seen commit messages that do not explain WHY the
>> change is needed but mostly saying WHAT the change is
>> doing.
>>
>> Explaining WHAT the change is doing is good when the code
>> is fairly complicated. Anyhow, I would prefer to see more of
>> WHY do we need that change.
>>
>> Lets try to keep this in mind.
>>
>> 2) Commit messages do not contain a verb.
>>
>> Commits should be seen as actions thus should contain
>> a verb. More than that we should use imperative mood.
>>
>> Not added, fixed, etc but Add, Fix, etc!
>>
>> 3) Capitalize the subject line
>>
>> First letter from commit subject after the subsystem tag should be
>> capital.
>>
>> e.g. buffer: add new interface -> buffer: Add new interface
>>
>> I think we should turn our attention to:
>>
>> https://chris.beams.io/posts/git-commit/#seven-rules
>>
>> thanks,
>> Daniel.
>> _______________________________________________
> 
> 
> Ack, good points for everyone to use when creating new PRs and patches.

Yep, more that 50% of my comments for kernel patches are "fix your 
commit messages" and it's even worse for SOF proper.


More information about the Sound-open-firmware mailing list