Add rewrite git log history functionality