Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Git log format for imperative sentence checking

Will format output of git log in the form of imperative sentences.

git log --format=%s --line-prefix="If applied, this commit will "

Example:

If applied, this commit will Reduce load on Spinnaker
If applied, this commit will Corrected spelling
If applied, this commit will Removing unnecessary comment
If applied, this commit will Refactor + Cleanup
If applied, this commit will Added support for x509 certs
If applied, this commit will adding x509 cert support
If applied, this commit will Adding x509 Private and Public params for the config file

Why is this important?

"...a commit message shows whether a developer is a good collaborator."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment