Make this `int should_write_reflog(bool *write, git_repository *repo, const char *name)`?