Skip to content

Instantly share code, notes, and snippets.

@fedecarg
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save fedecarg/8828409 to your computer and use it in GitHub Desktop.

Select an option

Save fedecarg/8828409 to your computer and use it in GitHub Desktop.

Generate an HTML file from a Git patch

Installation:

$ brew install colordiff
$ brew install gnu-sed
$ wget http://www.pixelbeat.org/scripts/ansi2html.sh -O /tmp/ansi2html.sh && chmod +x /tmp/ansi2html.sh

Usage:

$ file.patch | colordiff | /tmp/ansi2html.sh > file.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment