Skip to content

Instantly share code, notes, and snippets.

@philip-lamb
Created May 17, 2019 04:25
Show Gist options
  • Save philip-lamb/fefdfa4fdc9179457acc86154742df2b to your computer and use it in GitHub Desktop.
Save philip-lamb/fefdfa4fdc9179457acc86154742df2b to your computer and use it in GitHub Desktop.
Format a git log for inclusion in a GitHub wiki
git log --first-parent --pretty="format:* [\`%h\`](/mozillareality/firefoxreality/commit/%h) %s" 1.1.4c..HEAD | sed -E -e 's/\(#([0-9]+)\)$/[\`#\1\`](\/mozillareality\/firefoxreality\/pull\/\1)/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment