Check List for Committing in the Repository
Content Checks
- Add copyright in NOTICE file if not already there.
- Check indentation. Remove tabs and trailing spaces.
- Check .gitignore file.
Command-Line Options
- Set author name and email as follows:
GIT_AUTHOR_NAME="First Last" GIT_AUTHOR_EMAIL="email@address"
- Set author date to patch submission date, as follows:
GIT_AUTHOR_DATE="yyyy-mm-dd hh:mm:ss -0X00"
Log Message
- Log message must start with a verb.
- Start verb must be in present tense (not past tense).
- Log message must refer to related ticket, when applicable. Must be written as:
Some message log. See ticket:xxx.
- Log message must hold on a single line, and be at most 72 chars long (including the ticket reference).
- Every patch mush be signed-off by its author and all subsequent committers.
