-
-
Notifications
You must be signed in to change notification settings - Fork 399
Move the index to cffi and add conflict information #389
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
Conversation
This commit gives us feature-parity with the version in C.
The method is in Repository, but the merge functionality is separate. We will introduce more tests in this area later.
Add documentation for the conflicts, and add some for IndexEntry and Index which went missing during the conversion to cffi.
Instead of having
becomes
|
return centry, path | ||
|
||
@classmethod | ||
def _from_c(cls, centry): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not from_c
like in Index.from_c
? Is more consistent this way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because it's a special function. I went back and forth on that one, but this is a private function that only makes sense inside pygit2. The consistency should go the other way.
+1 to make |
Ok just did that. |
I wanted to add information for conflicts, so I went and put it into python beforehand.