Skip to content

Instantly share code, notes, and snippets.

@meffie
Last active January 4, 2018 18:13
Show Gist options
  • Save meffie/795919889ed0ef2f03a717bebb8efa19 to your computer and use it in GitHub Desktop.
Save meffie/795919889ed0ef2f03a717bebb8efa19 to your computer and use it in GitHub Desktop.
check openafs acinclude refactor
#!/bin/sh
git clean -d -f -q -x
git fetch https://gerrit.openafs.org/openafs refs/changes/44/12844/3
git checkout FETCH_HEAD
git log -n1 --oneline
echo 0.0.0 >.version # avoid false hunks in diff
./regen.sh -q
mv configure configure.new
mv configure-libafs configure-libafs.new
git checkout HEAD~3
git log -n1 --oneline
./regen.sh -q
mv configure configure.old
mv configure-libafs configure-libafs.old
echo "==================================="
echo "Looking for non-white space changes:"
diff -u -B -w configure.old configure.new
diff -u -B -w configure-libafs.old configure-libafs.new
rm .version # cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment