Just include "git2/buf_text.h" in buf_text.h.