Skip to content

Instantly share code, notes, and snippets.

@shivaram
Created November 9, 2014 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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