Skip to content

Refspec getter/setters#319

Merged
jdavid merged 2 commits intolibgit2:masterfrom
carlosmn:refspec-props
Jan 23, 2014
Merged

Refspec getter/setters#319
jdavid merged 2 commits intolibgit2:masterfrom
carlosmn:refspec-props

Conversation

@carlosmn
Copy link
Copy Markdown
Member

This is much more pythonic than getter/setter function pairs. I've left the functions for backward compatibility, but they should be removed before the minor release. The functions use the attributes' code, so I've left the tests mostly alone, and it should convert over painlessly when we remove the functions.

I've also made sure we fail gracefully on unexpected input.

This is a lot more pythonic than two sets of getter-setter
functions. The old ones are left for backwards compatibility but they
should be removed in the next release.
The object passed must be a list of strings, so make sure we fail by
raising an error instead of segfaulting.
@jdavid jdavid merged commit 0c3a700 into libgit2:master Jan 23, 2014
@carlosmn carlosmn deleted the refspec-props branch February 6, 2014 10:13
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