★ wanayoo — archive 1999 https://github.com/libgit2/pygit2/pull/319Nouvelle recherche | Portail wanayoo
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

carlosmn commented Jan 22, 2014

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.

carlosmn added 2 commits Jan 22, 2014
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
1 check passed
1 check passed
default The Travis CI build passed
Details
@carlosmn carlosmn deleted the carlosmn:refspec-props branch Feb 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.