summaryrefslogtreecommitdiff
path: root/lib/git/objects/tree.py
Commit message (Collapse)AuthorAgeFilesLines
* When parsing trees, we now store the originan type bits as well, previously ↵Sebastian Thiel2009-10-261-8/+9
| | | | we dropped it
* tree.traverse: Added prune functionality - previously the predciate did ↵Sebastian Thiel2009-10-211-8/+12
| | | | both, pruning and preventing to return items
* resolved cyclic inclusion issue by moving the Diffable interface into the ↵Sebastian Thiel2009-10-181-1/+2
| | | | diff module, which probably is the right thing to do anyway
* added Diffable interface to objects.base, its used by Commit and Tree objects.Sebastian Thiel2009-10-161-1/+2
| | | | Diff class has been prepared to process raw input, but its not yet more than a frame
* tree: now reads tress directly by parsing the binary data, allowing it to ↵Sebastian Thiel2009-10-141-32/+70
| | | | safe possibly hundreds of command calls
* test: Added time-consuming test which could also be a benchmark in fact - ↵Sebastian Thiel2009-10-141-1/+1
| | | | | | | currently it cause hundreds of command invocations which is slow Fixed issue with trees not properly initialized with their default mode _set_cache_: some objects checked whether the attribute was within their __slots__ although it should have been accessed through its class
* tree: renamed content_from_string to _from_string to make it private. ↵Sebastian Thiel2009-10-131-2/+2
| | | | Removed tests that were testing that method
* tree: now behaves like a list with string indexing functionality - using a ↵Sebastian Thiel2009-10-121-34/+136
| | | | | | dict as cache is a problem as the tree is ordered, added blobs, trees and traverse method repo: remove blob function as blobs are created directly or iterated - primitve types should not clutter the repo interface
* renamed from_string and list_from_string to _from_string and ↵Sebastian Thiel2009-10-121-2/+2
| | | | _list_from_string to indicate their new status as private method, adjusted all callers respectively
* Reorganized package structure and cleaned up importsSebastian Thiel2009-10-121-0/+102