Skip to content

Instantly share code, notes, and snippets.

@steadystatic
Created November 2, 2015 22:10
Show Gist options
  • Save steadystatic/f88c44607ed8810ec8d5 to your computer and use it in GitHub Desktop.
Save steadystatic/f88c44607ed8810ec8d5 to your computer and use it in GitHub Desktop.
Quick way to log differences in a Markdown format
#!/bin/sh
#Path to your git needs to be here
PATH=/usr/local/bin:/usr/bin
#6 columns markdown table doc
echo "|PR TAG|DATE|AUTHOR|SHA|ORIGINAL BRANCH|MESSAGE|" > demo-diff.md
# TAGS USED BELOW ARE STATIC, ADJUST
# Ensure pretty format has same amount of columns as above echo, this appends into that file
git log --no-merges dev-1446490913..demo-1446489271-report.1 --pretty=format:'|[DEMO-|%ai|%<(20)%an|%h|%D|%s|' --no-merges >> demo-diff.md
# After the markdown is printed out, you could use http://markable.in/editor/ to get the HTML or some command line tool for pasting HTML into places like Confluence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment