summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-06-23 09:33:48 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2015-06-23 09:33:48 -0400
commit8ae8ba8d23c080a439f20af29c9cdb62f2b0f169 (patch)
treee6c1e86f95df0000d09c0d61f9c40e56614ef54b
parenta7e7bcd8bf05196fe1ec459188867cc6942ab180 (diff)
parentb8323775ca255c6a86572d5295be5c1eeda0b8b3 (diff)
downloadlibgit2-maint/v0.22.tar.gz
Merge pull request #3245 from libgit2/cmn/no-growv0.22.3maint/v0.22
blob: don't recomment using git_buf_grow
-rw-r--r--include/git2/blob.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/include/git2/blob.h b/include/git2/blob.h
index c24ff7e7f..4a6d8e50a 100644
--- a/include/git2/blob.h
+++ b/include/git2/blob.h
@@ -107,12 +107,10 @@ GIT_EXTERN(git_off_t) git_blob_rawsize(const git_blob *blob);
* The output is written into a `git_buf` which the caller must free
* when done (via `git_buf_free`).
*
- * If no filters need to be applied, then the `out` buffer will just be
- * populated with a pointer to the raw content of the blob. In that case,
- * be careful to *not* free the blob until done with the buffer. To keep
- * the data detached from the blob, call `git_buf_grow` on the buffer
- * with a `want_size` of 0 and the buffer will be reallocated to be
- * detached from the blob.
+ * If no filters need to be applied, then the `out` buffer will just
+ * be populated with a pointer to the raw content of the blob. In
+ * that case, be careful to *not* free the blob until done with the
+ * buffer or copy it into memory you own.
*
* @param out The git_buf to be filled in
* @param blob Pointer to the blob