fix up git-ir: add a --rewrite option, handle processing better.