Introduce repo.Refs.RewriteHistory()