Skip to content

Get rid of allocfmt()#449

Merged
jdavid merged 1 commit intolibgit2:masterfrom
carlosmn:no-allocfmt
Nov 10, 2014
Merged

Get rid of allocfmt()#449
jdavid merged 1 commit intolibgit2:masterfrom
carlosmn:no-allocfmt

Conversation

@carlosmn
Copy link
Member

@carlosmn carlosmn commented Nov 9, 2014

It is not possible to know how we can free the results of this
allocation, so we shouldn't be using this function.

We have a convention of returning Oid objects in pygit2, so let's keep
to that in these places.


The tests showed some issues if we just leave it to use str or repr to compare, though it likely won't affect anybody who is using this to print them out. So this may be a breaking change in certain situations.

It is not possible to know how we can free the results of this
allocation, so we shouldn't be using this function.

We have a convention of returning Oid objects in pygit2, so let's keep
to that in these places.
@jdavid jdavid merged commit 11eea2d into libgit2:master Nov 10, 2014
jdavid added a commit that referenced this pull request Jan 16, 2015
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