Coding style
The best way to get acquainted with what we will be looking for in kernel patches is to
start with the kernel's own documentation:
Checkpatch
Running the kernel's checkpatch tool on all patches submitted to kernel baselines.
Assuming you have already committed your changes locally and your current directory
is the root of the kernel source tree, you can use the following command to run checkpatch locally:
"git format -patch HEAD~1 --stdout | ./scripts/checkpatch.pl "
Patch Serialization
new work in a single patch.
Commit Messages
provide some background and reasoning. When writing commit message try to think of
the information you would want to know if you were looking back at the change several
months down the road.
Good_commit_messages
AngularJS Git Commit Message Conventions
5 Useful Tips For A Better Commit Message
thoughtbot git message
1. easy to read
2. easy to cherry-pick
3. easy to code review
Applying Patches
git am to apply the patch so that the original commit metadata (author, data, commit message, etc.) is preserved.