Skip to content

Instantly share code, notes, and snippets.

@imaami
Created February 5, 2020 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imaami/944c27785c2808ed2e0418cb79983df0 to your computer and use it in GitHub Desktop.
Save imaami/944c27785c2808ed2e0418cb79983df0 to your computer and use it in GitHub Desktop.
`git format-patch` output from `git log --pretty=format:...`
#!/bin/bash
#
# Doesn't print the content of the actual diff yet.
# Probably fails to produce identical output in some
# cases.
#
git log --pretty='format:From %H%nFrom: %an <%ae>%nDate: %aD%nSubject: [PATCH] %s%n%n%b%n' "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment