Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
8ae8ba8d
Commit
8ae8ba8d
authored
Jun 23, 2015
by
Edward Thomson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3245 from libgit2/cmn/no-grow
blob: don't recomment using git_buf_grow
parents
a7e7bcd8
b8323775
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
include/git2/blob.h
+4
-6
No files found.
include/git2/blob.h
View file @
8ae8ba8d
...
@@ -107,12 +107,10 @@ GIT_EXTERN(git_off_t) git_blob_rawsize(const git_blob *blob);
...
@@ -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
* The output is written into a `git_buf` which the caller must free
* when done (via `git_buf_free`).
* when done (via `git_buf_free`).
*
*
* If no filters need to be applied, then the `out` buffer will just be
* If no filters need to be applied, then the `out` buffer will just
* populated with a pointer to the raw content of the blob. In that case,
* be populated with a pointer to the raw content of the blob. In
* be careful to *not* free the blob until done with the buffer. To keep
* that case, be careful to *not* free the blob until done with the
* the data detached from the blob, call `git_buf_grow` on the buffer
* buffer or copy it into memory you own.
* with a `want_size` of 0 and the buffer will be reallocated to be
* detached from the blob.
*
*
* @param out The git_buf to be filled in
* @param out The git_buf to be filled in
* @param blob Pointer to the blob
* @param blob Pointer to the blob
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment