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

fix blame argument handling #297

Merged
merged 1 commit into from
Dec 10, 2013
Merged

Conversation

aspiers
Copy link

@aspiers aspiers commented Dec 9, 2013

The argument handling for the new Repository_blame had several problems:

  • The call to PyArg_ParseTupleAndKeywords was missing &path, so none
    of the optional arguments got parsed correctly.
  • newest_commit and oldest_commit were missing type validation
    against OidType.
  • The opts struct was discarded rather than passed to git_blame_file.

This commit fixes these issues and adds a test case.

The argument handling for the new Repository_blame had several problems:

- The call to PyArg_ParseTupleAndKeywords was missing &path, so none
  of the optional arguments got parsed correctly.
- newest_commit and oldest_commit were missing type validation
  against OidType.
- The opts structure was discarded rather than passed to git_blame_file.

This commit fixes these issues and adds a test case.
@cvrebert
Copy link
Contributor

Great, so it's not just me.
I note that min_line and max_line lack any testcases.

@jdavid jdavid merged commit 749810a into libgit2:master Dec 10, 2013
cvrebert added a commit to hulu/restfulgit that referenced this pull request Dec 21, 2013
Currently disabled/broken due to a bug in the underlying pygit2 API.
The bug has been fixed, but they haven't yet made a new release w/ the fix.
See libgit2/pygit2#297
@aspiers aspiers deleted the fix-blame-args branch January 5, 2015 17:43
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.

None yet

3 participants