How about `git_buf_cstr()` and `git_buf_len()`?