imperative mood
The grammatical form of a command, such as "Add the request timeout" rather than "Added" or "Adds".
In more detail
Git's own generated messages use it (Merge branch, Revert), so commit subjects written the same way read consistently. A handy test: the subject should complete the sentence "If applied, this commit will ...".
Related terms
- subject line — The first line of a commit message, a short summary that Git shows in one-line views such as git log --oneline.
- commit message — The text a person writes into a commit to say what it does and why: a one-line subject, a blank line, then an optional body.
Taught in
- Committing, And What A Good Message Says — Advanced Git Internals & Distributed Workflows
- Conventional Commits — Advanced Git Internals & Distributed Workflows