buffer: Expose git_buf_put() to bindings
diff --git a/include/git2/buffer.h b/include/git2/buffer.h
index 9fc6a58..5f96af6 100644
--- a/include/git2/buffer.h
+++ b/include/git2/buffer.h
@@ -121,6 +121,16 @@
 */
 GIT_EXTERN(int) git_buf_contains_nul(const git_buf *buf);
 
+/**
+* Append to an existing buffer a copy of some raw data.
+*
+* @param buffer The buffer to append to
+* @param data The data to copy into the buffer
+* @param len The length of the data to copy into the buffer
+* @return 0 on success, -1 on allocation failure
+*/
+GIT_EXTERN(int) git_buf_put(git_buf *buf, const char *data, size_t len);
+
 GIT_END_DECL
 
 /** @} */
diff --git a/src/buffer.h b/src/buffer.h
index 8ee4b53..ac74c95 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -89,7 +89,6 @@
 int git_buf_sets(git_buf *buf, const char *string);
 int git_buf_putc(git_buf *buf, char c);
 int git_buf_putcn(git_buf *buf, char c, size_t len);
-int git_buf_put(git_buf *buf, const char *data, size_t len);
 int git_buf_puts(git_buf *buf, const char *string);
 int git_buf_printf(git_buf *buf, const char *format, ...) GIT_FORMAT_PRINTF(2, 3);
 int git_buf_vprintf(git_buf *buf, const char *format, va_list ap);