Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

carlosmn
Copy link
Member

We currently recommend using git_buf_grow in order to make a buffer
make an owned copy of the memory it points to. This is not behaviour we
should encourage, so remove this recommendation.

The function itself is not changed, as we need to remain compatible, but
it will be changed not to allow usage on borrowed buffers.


This comes from the discussion in #3187. /cc @ethomson

We currently recommend using `git_buf_grow` in order to make a buffer
make an owned copy of the memory it points to. This is not behaviour we
should encourage, so remove this recommendation.

The function itself is not changed, as we need to remain compatible, but
it will be changed not to allow usage on borrowed buffers.
ethomson added a commit that referenced this pull request Jun 23, 2015
blob: don't recomment using git_buf_grow
@ethomson ethomson merged commit 8ae8ba8 into maint/v0.22 Jun 23, 2015
@carlosmn carlosmn deleted the cmn/no-grow branch June 23, 2015 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants