Guest User

Untitled

a guest
Apr 16th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #!/bin/sh
  2. # Provides a way to compare a fork against the original it is based
  3. # on so you can get a general idea of what is in a fork.
  4. #
  5. # git-fork-compare <original> <fork>
  6.  
  7. TMP_GIT=`mktemp -d`;
  8. rmdir $TMP_GIT;
  9. git clone -q $2 $TMP_GIT;
  10. cd $TMP_GIT;
  11. git remote add orig $1;
  12. git fetch -q orig > /dev/null 2>&1;
  13. git diff orig/master...master;
  14. rm -rf $TMP_GIT;
Add Comment
Please, Sign In to add comment