The alternative (which I considered) was too use ```snprintf```. ```git_buf_printf``` seem very heavy weight here :smile: 

Exactly the same may be said about ```git_oid_fmt``` in all honesty.