aboutsummaryrefslogtreecommitdiff
path: root/lib/git/repo.py
AgeCommit message (Collapse)Author
2008-09-12Cosmetic fixes to be consistent with the overall coding style.Kai Lautaportti
2008-09-12Added a read-only property Repo.is_dirty which reflects the status of theKai Lautaportti
working directory. A working directory is dirty if it has any uncommitted changes (in the working directory or in the index). Bare repositories are by nature always clean.
2008-09-07Allow modifying the project descriptionSteve Frécinaux
Do this: >>> repo.description = "Foo Bar" >>> repo.description 'Foo Bar'
2008-09-07Make daemon export a property of git.RepoSteve Frécinaux
Now you can do this: >>> exported = repo.daemon_export >>> repo.daemon_export = True
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-05Fix unneeded dict unpacking.Steve Frécinaux
2008-08-21Merge branch 'master' of git@gitorious.org:git-python/mainlineFlorian Apolloner
2008-08-21fixed unneeded list unpackingFlorian Apolloner
2008-08-18fixed it so init actually creates a bare repo. Thank you Daniel Watkins.Michael Trier
2008-07-28Fix use of bare repositories.Jelmer Vernooij
(cherry picked from commit 80f8a18a69e307f6ea0bfeb14791fc75e239faa2)
2008-07-16Added license information to all files.Michael Trier
2008-06-25fixed ↵Florian Apolloner
http://groups.google.com/group/git-python/browse_thread/thread/b8f3580abf31f9db?hl=en# and passed Git a working_tree again (sort of).
2008-06-21added os.path.expanduser to the repo initializationFlorian Apolloner
2008-06-15cmd: better support for bare repositoriesDavid Aguilar
In order to avoid the expense of parsing .git/config just to know whether or not a repository is bare at __init__ time, we just pass an optional flag to Git.__init__(): bare_repo with a default value of False. Repo.init_bare() was updated to pass this flag. We could have an optional Git.read_bare_status() function that does the expensive lookup. Then, users can optionally call it at runtime if they really need to know whether or not a repository is bare. That seems like a decent tradeoff between speed, correctness, and common use cases. Signed-off-by: David Aguilar <davvid@gmail.com>
2008-06-12repo: these changes make Govind's latest changes pass the test casesDavid Aguilar
Signed-off-by: David Aguilar <davvid@gmail.com>
2008-06-12Determine git_dir and git_work_tree in python.Govind Salinas
Calling git to find the git_dir and work_tree is very costly. This patch uses the same mechanisim to find the git_dir as native git does without shelling out. Signed-off-by: Govind Salinas <blix@sophiasuchtig.com>
2008-06-11stupid typo *grr*Florian Apolloner
2008-06-11removed to much :þFlorian Apolloner
2008-06-11fixed init_bareFlorian Apolloner
2008-05-31renamed gitter to cmd since that makes more sense. Fixed up changes doc.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.