Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. rm -Rf updated/
  2. for fn in `git diff --name-only HEAD~$1`;do
  3.   echo "path: $fn"
  4.   mkdir -p "updated/`dirname $fn`"
  5.   cp -P $fn updated/$fn
  6. done