aboutsummaryrefslogtreecommitdiff
path: root/lib/git/tree.py
AgeCommit message (Collapse)Author
2009-10-11fixed issue in Ref.name implementation which would not handle components ↵Sebastian Thiel
properly
2009-10-11lazymixin system now supports per-attribute baking, it is up to the class ↵Sebastian Thiel
whether it bakes more. This also leads to more efficient use of memory as values are only cached and set when required - the baking system does not require an own tracking variable anymore, and values are only to be cached once - then python will natively find the cache without involving any additional overhead. This works by using __getattr__ instead of __get_attribute__ which would always be called
2009-10-11put Tree and Blob onto a new base class suitable to deal with IndexObjectsSebastian Thiel
2009-10-11converted all spaces to tabs ( 4 spaces = 1 tab ) just to allow me and my ↵Sebastian Thiel
editor to work with the files properly. Can convert it back for releaes
2009-10-11Intermediate commit: commit,tree and blob objects now derive from object - ↵Sebastian Thiel
test is in place which still fails on purpose. Need to integrate tags which can be objects or just a special form of a ref
2009-10-09Renamed lazy.py to base.py to have a file for base classes - lazy not yet ↵Sebastian Thiel
changed to allow proper rename tracking
2009-10-09Blob|Tree: renamed 'name' member to 'path', updated tests and changelog as ↵Sebastian Thiel
it would make existing code incompatible in some places
2009-08-05Fix parsing for files with whitespaceJeremy Kerr
Currently, the Tree object won't include any files that contain whitespace. split(c, 4) can return a 5-tuple, but we want a 4-tuple instead. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2009-01-24Lots of spring cleaning and added in Sphinx documentation.Michael Trier
2008-12-15fixed git.Tree.__len__ argumentsk0001
(cherry picked from commit 657444d75d7b2d6913c2d491841b9bd70c8bd289)
2008-09-17Replace GitPython with git in repr() outputs.Steve Frécinaux
The imported module is called git (as in "import git"), so it's less confusing to do so than to call everything GitPython.something.
2008-09-06Do not use **kwargs for constructors.Steve Frécinaux
It is better to have an explicit list of variables for the constructors, be it only to avoid mispelled arguments.
2008-09-06Make Tree.content_from_string a static method.Steve Frécinaux
It doesn't use an object's private contents, so let's go...
2008-09-06Implement dict protocol for trees.Steve Frécinaux
It is rather intuitive to consider trees as a dict of objects (like a directory could be seen as a dict of files).
2008-09-05Initialize trees completely in tree.__bake__().Steve Frécinaux
This is a simplification of the tree baking code. As a matter of consequency, Tree.construct() and tree.construct_initialize() have been killed, and repo.tree() has lost the "paths" argument. This is not a problem since one can just have the same result with: dict(k, o for k, o in tree.items() if k in paths)
2008-09-05Use a dictionnary for tree contentsSteve Frécinaux
It seems more natural to use a dictionnary for directories, since we usually want to access them by name, and entry order is not relevant. Also, finding a particular blob given its name is O(1) instead of O(N).
2008-09-05Fix unneeded dict unpacking.Steve Frécinaux
2008-07-16Added license information to all files.Michael Trier
2008-05-30renamed git_python to git. Removed pop_key and replaced with dict.pop. Fixed ↵Michael Trier
up tests so they pass except for stderr test. Modified version information retrieval.