Isn't this just `git_buf_clear`?