Skip to content

Instantly share code, notes, and snippets.

@shivaram
Created November 9, 2014 01:58
Show Gist options
  • Save shivaram/96287a290a34b345bf2c to your computer and use it in GitHub Desktop.
Save shivaram/96287a290a34b345bf2c to your computer and use it in GitHub Desktop.
Show spark diff using cdiff
#!/bin/bash
# Shows Spark PR diff using cdiff https://github.com/ymattw/cdiff
if [[ $# -ne 1 ]];
then
echo "Usage spark-diff <pr_num>"
exit 1
fi
command -v cdiff >/dev/null 2>&1 || { echo >&2 "Install cdiff using pip."; exit 1; }
curl -s https://github.com/apache/spark/pull/$1.diff | cdiff -s -w 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment