rewrite git_gc()