Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refspec getter/setters #319

Merged
merged 2 commits into from
Jan 23, 2014
Merged

Refspec getter/setters #319

merged 2 commits into from
Jan 23, 2014

Conversation

carlosmn
Copy link
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