This is not good. The reflog was designed to be an append data structure: we should be able to call `git_reflog_append` without having to read the reflog beforehand.