Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
`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
You can’t perform that action at this time.