gitapply.sh: Rewrite script to improve performance on huge font patches.