J. David Ibáñez
d4ca441c5b
Documentation: we have an index iterator now
2011-07-21 12:36:12 +02:00
Julien Miotte
d6a3014208
According to PEP7, restricting lines to 79 chars, fixing code structure.
2011-07-21 12:15:50 +02:00
Julien Miotte
b62fcc8877
Purely cosmetic, alining all PyTypeObjects comments.
2011-07-21 12:15:17 +02:00
Julien Miotte
802015246d
Small improvements of the documentation (commit and iterable trees)
2011-07-21 12:13:37 +02:00
J. David Ibáñez
d55ea4c102
Reuse the function 'git_oid_to_py_str'
2011-07-20 15:29:58 +02:00
J. David Ibáñez
dafe4b11b2
Fix coding style
...
- do not use tabs
- remove trailing white spaces
- lines are 79 chars max.
2011-07-20 15:05:17 +02:00
J. David Ibáñez
cd83372230
Merge remote branch 'byron/repo_write_improved' into repo_write
2011-07-18 22:45:46 +02:00
Sebastian Thiel
d0bc776121
Repository.write implemented
...
Implemented Repository write function, using odb write streams
Added simple test
2011-07-18 17:02:26 +02:00
J. David Ibáñez
a139335098
Fix memory leak in 'wrap_index_entry' (issue #18 )
2011-07-14 22:01:40 +02:00
J. David Ibáñez
7b6c6a7a4c
Update to libgit2 v0.14.0
2011-07-14 12:05:09 +02:00
Julien Miotte
2093281110
Adding a test on IndexEntry 'mode' new attribute.
2011-07-12 18:53:29 +02:00
Julien Miotte
d484edb293
Adding a new 'mode' attribute to IndexEntry objects.
...
This new attribute gives use read access on IndexEntry's mode.
2011-07-12 18:53:29 +02:00
J. David Ibáñez
9740fc44cd
Merge remote branch 'julien/tree_iter'
2011-07-12 17:13:15 +02:00
J. David Ibáñez
855359ae2a
Merge commit 'byron/repo_write_improved~2'
2011-07-12 16:09:43 +02:00
Julien Miotte
30078270bb
Adding a test on Tree objects iteration.
2011-07-11 22:27:03 +02:00
Julien Miotte
0eb75de425
Making the Tree object iterable.
...
By copying IndexIter functions, this gives us the ability to iterate of
TreeEntries of a Tree object.
2011-07-11 22:27:03 +02:00
Sebastian Thiel
a0975f78d5
Fixed memory leaks
...
Repository_read would not free the odb object after using it.
Object_read_raw didn't close the odb object after usage
2011-07-08 17:11:56 +02:00
Sebastian Thiel
cf37c15059
allow 20 byte sha strings
...
Adjusted py_str_to_git_oid to allow 20 byte binary strings. This improves usability to other clients which already store their shas as binary strings, increasing overall performance as they won't have to convert them into hex beforehand, which would have to be converted back to binary form by libgit2 in turn.
Adjusted tests to accept binary shas.
2011-07-08 17:05:33 +02:00
J. David Ibáñez
516d5f2a8e
Merge pull request #24 from gitpython-developers/test_fixes
...
Fixed reference tests on linux
2011-07-08 03:31:55 -07:00
Sebastian Thiel
84cb4616b7
Fixed reference tests, they were dependent on the order of the file-system, which in fact is undetermined. Sorting them to assure order
2011-07-08 11:04:28 +02:00
J. David Ibáñez
eedd975bc8
Fix compilation warnings, remove unused variables
v0.13.0
2011-06-25 18:53:22 +02:00
J. David Ibáñez
215893328c
Fix issue #22 , pygit2 compiles again with Python 2.5
2011-06-25 18:46:07 +02:00
J. David Ibáñez
7e8da54569
Update to libgit2 v0.13.0
2011-06-20 16:04:52 +02:00
Carlos Martín Nieto
64b20305e6
Use newer API
2011-06-16 22:48:42 +02:00
J. David Ibáñez
f8e61de973
Optimize index iterator, refactor code
v0.12.0
2011-05-11 18:03:50 +02:00
J. David Ibáñez
f55b001db9
Fix index iterator test
2011-05-11 17:18:23 +02:00
J. David Ibáñez
87617e97a9
Merge remote branch 'zoranzaric/README'
2011-05-11 11:04:17 +02:00
J. David Ibáñez
fafeace94a
Merge remote branch 'jflatow/dev' into development
2011-05-10 18:47:53 +02:00
Jared Flatow
b7fe1f90d0
added script to obviate nasty memory leak in Index_getitem
2011-05-10 08:18:35 -07:00
Jared Flatow
9dfc40e3f3
added iterator to index objects
2011-05-10 08:18:35 -07:00
J. David Ibáñez
22b6d44749
Update to libgit2's changes: strerror -> lasterror
2011-05-10 15:45:52 +02:00
Zoran Zaric
1a71745196
Remove trailing spaces from README
2011-05-09 13:43:38 +02:00
Zoran Zaric
dd86fbe048
Fix spelling mistake in README
2011-05-09 13:43:09 +02:00
J. David Ibáñez
8ad5e30eda
Update maintainer in the setup file
2011-05-05 19:55:04 +02:00
J. David Ibáñez
51e6cdfd5d
Replace internal function wrap_object by lookup_object
...
The new function does a little more, saving some lines from the callers.
This change will allow to implement a cache, now all object lookups are
centralized in a single function.
2011-05-05 19:33:05 +02:00
David Versmisse
bed8c13757
Add the "getters" Repository.path and Repository.workdir
2011-04-29 09:21:01 +02:00
David Versmisse
858adab759
Implement the References (part II)
2011-04-28 10:25:37 +02:00
David Versmisse
aac4cf1b86
Implement the References (part I)
2011-04-15 11:09:20 +02:00
J. David Ibáñez
713b14d2ee
Support updating reference in create_commit
2011-04-11 19:23:48 +02:00
J. David Ibáñez
6f2b864619
Change API to create Git objects
...
Do not allow to create commits, trees, blobs and tags directly from the
constructor. For instance, now calling "Commit(...)" raises an error.
Instead use the create methods of the repository object:
Before Now
----------------------------- -----------------------------
commit = Commit(repo, ...) sha = repo.create_commit(...)
tag = Tag(repo, ...) sha = repo.create_tag(...)
Most often you won't need to get the object just created, but if you
do just call "repo[sha]" afterwards. (Methods to create blobs and trees
are still missing, just like before.)
Similarly the method that creates a tree object from the index file does
not return the tree object anymore, but just its SHA:
Before Now
----------------------------- -----------------------------
tree = index.create_tree() sha = index.create_tree()
2011-04-11 18:44:49 +02:00
J. David Ibáñez
32acbc0f71
Set Python error when Commit_init fails
2011-04-08 18:37:32 +02:00
J. David Ibáñez
43ea66b738
Add support for the time offset of the signature
2011-04-08 17:03:41 +02:00
J. David Ibáñez
7947c5396c
tests: remove unneeded calls to Index.read
...
Since libgit2's commit 3bdc0d4c8c3a5 the index file is automatically
read when opened.
2011-04-08 16:35:20 +02:00
J. David Ibáñez
c7ea728ca5
Merge remote branch 't3/master' into development
2011-04-07 16:36:13 +02:00
J. David Ibáñez
8491568dd0
Fix compilation warnings
2011-04-07 16:31:21 +02:00
Sarath Lakshman
014388c995
Add unit test for method create_tree() from Index class
2011-04-07 14:07:48 +05:30
Sarath Lakshman
e7fe537626
Add create_tree
method for Index class
...
Invoke tree = index.create_tree() to create a tree from index file and return Tree object.
2011-04-07 14:02:57 +05:30
J. David Ibáñez
fca3a4753b
Fix Tree_contains, forward Python errors
2011-04-06 13:03:38 +02:00
J. David Ibáñez
08d3dcc82e
Update unit tests
2011-04-05 12:37:26 +02:00
J. David Ibáñez
8bbc75148f
Add the parents param to the Commit init method
...
And fix unit tests for the commit object.
2011-04-05 11:22:56 +02:00