git-pastie-diff

A little script to paste Git patches on Pastie. It uses the pastie command line application (download) by Luke Redpath.

#!/bin/sh
set -e
url=`git-diff "$@" | pastie -p -f diff`
echo "URL: $url" 
open "$url" # Needs Mac OS X