J. David Ibáñez
7130df3a5e
Get back iter(Blame)
...
Was lost in commit cd0842592
2015-02-12 13:02:04 +01:00
Carlos Martín Nieto
0ba17a5b46
Safer handling of string arrays
...
We need to keep hold of the strings which we create. We must also hold
on to the array of strings which we assing to our git_strarray.
We were not doing the latter, which meant that our strings may have been
freed too early, leaving us with with memory access errors (though often
not leading to a crash due to the custom allocator in python).
As we need to keep hold of two/three pieces of information, this looks
like a good place to introduce a context manager. This allows us to
keep these pointers alive without burdening the call sites with a return
of multiple objects they have no use for.
2015-02-06 03:51:05 +01:00
W. Trevor King
149bb1e9e2
index: Add missing 'tree' entry to diff_to_tree docstring argspec
...
It's been missing since the original argspec was added with 5ed9eb4
(Add documentation for conflicts and fixup Index, 2014-07-10).
2014-10-26 15:37:15 -07:00
J. David Ibáñez
99f295e2e8
docs: fix reST errors
2014-08-20 17:00:33 +02:00
J. David Ibáñez
ed26ed3944
Get back IndexEntry.oid for backwards compatibility
2014-07-30 12:58:27 +02:00
J. David Ibáñez
3ccba38725
Fix regression in v0.21.1, IndexEntry.path returns str
...
And str in Python 2 means bytes. Recall, we are supposed to give a
native experience to both Python 2 and 3 users.
2014-07-28 18:02:24 +02:00
J. David Ibáñez
be807a1dfc
internal: split code for Python 2/3 compatibility
2014-07-28 17:51:51 +02:00
J. David Ibáñez
7df11bf817
internal: rename "to_str" to "to_bytes" for clarity
2014-07-28 17:30:38 +02:00
J. David Ibáñez
57e25c1a4a
index: replace has_conflicts by conflicts returning None
2014-07-22 10:50:30 +02:00
vtemian
93369b0a7c
Cleanup a little bit the code
2014-07-14 20:21:24 +03:00
Carlos Martín Nieto
ae32ad12ee
Support del in ConflictCollection
2014-07-10 11:27:10 +02:00
Carlos Martín Nieto
5ed9eb4228
Add documentation for conflicts and fixup Index
...
Add documentation for the conflicts, and add some for IndexEntry and
Index which went missing during the conversion to cffi.
2014-07-10 09:08:16 +02:00
Carlos Martín Nieto
1985a95b6b
Add looking up conflicts in an Index
2014-07-10 09:08:16 +02:00
Carlos Martín Nieto
97ee7ab179
Move Index to cffi
...
This commit gives us feature-parity with the version in C.
2014-07-10 09:08:16 +02:00