7 Commits

Author SHA1 Message Date
Carlos Martín Nieto
cd08425927 Move blame to cffi
This requires fairly little work on the pygit2 side to kick off all the
searching on the libgit2 side, so it's a fairly good candidate.

This changes the return value for the commit ids to Oid instead of
strings, which is what we generally try to return.
2014-08-31 22:35:32 +02:00
Carlos Martín Nieto
9cec62d2e1 Blame: orig_ is now filled 2014-04-01 19:47:48 +02:00
J. David Ibáñez
d7071b88cd Update copyright year 2014-02-04 08:02:12 +01:00
Carlos Martín Nieto
500a6793c4 Object: move to use an 'id' attribute instead of 'oid'
This looks like a left-over from the libgit2 misnaming. The current
consensus is that 'oid' is the data type and 'id' is the name of the
attribute.
2014-01-24 11:04:34 +01:00
Adam Spiers
749810ac77 fix blame argument handling
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.
2013-12-09 12:03:32 +00:00
J. David Ibáñez
6fd851a97e Fix tests with Python 2.6 2013-11-23 13:07:13 +01:00
Petr Hosek
629e318275 Add Blame support 2013-11-04 15:23:10 +00:00