Don't warn the user about foo.
The foo warning is superfluous because ...
> it's an unnecessary stroke of the shift keyThis is not a good reason to argue for a style convention. The effort or time of pressing "shift+letter" is no greater than simply pressing "letter" for all experienced typists since they are pressed simultaneously and the decision to capitalize a letter and execute the necessary keypress is completely automatic and fluid. If we were discussing rarely-used symbols and keystrokes then the analysis might be different.
There is great value in following the language's style convention since its readers are familiar with that convention. Upper case denotes the beginning of a sentence. When you scan a series of lines beginning in upper case, there's a visual cue that they're each their own unit, as opposed to (for example) the wrapping of a previous line.
Don't warn in case foo
Update bar dependency
Warn user when baz
These scan better to me as a series of three independent thoughts than the equivalent in lower case, which seems like a poorly written haiku: don't warn in case foo
update bar dependency
warn user when baz
Personal preference might differ, but my opinion based on seeing many variations is that programming texts such as documentation, commit messages, etc., are most readable when they follow the syntax and style of regular English text, to leverage all of the standard cues that the reader is familiar with. Readability usually suffers when one breaks from convention.Lastly, following regular conventions gives you the advantage that you can copy/paste text across various scenarios without having to change it. Need to reference a commit message in an email? Well, just copy it in. No need to mess with the capitalization. All things considered I see no good reason to begin documentation or commit messages in lower case given the overwhelming conventions to the contrary that exist in our language.
Also, the project should follow standard rules everybody else uses (so everybody doesn't have to re-learn project-specific demands).
So, titles of commit messages are caps and don't end with a full stop.