summaryrefslogtreecommitdiff
path: root/lib/git/repo.py
Commit message (Collapse)AuthorAgeFilesLines
* Many small doc changes pulled in from the 0.1.7RC branch.0.1.7Michael Trier2010-03-201-3/+3
|
* Corrected a bunch of whitespace that makes some folks crazy. Added Sebastian ↵Michael Trier2010-03-031-14/+14
| | | | to the AUTHORS file.
* Fixed repo.alternates implementation which didn't work in the 'real' world ↵Sebastian Thiel2009-10-211-9/+13
| | | | with a non-mock test
* improved repo documentationSebastian Thiel2009-10-081-29/+51
|
* Lots of spring cleaning and added in Sphinx documentation.Michael Trier2009-01-241-1/+1
|
* Corrected a problem with commits_between returning None.Michael Trier2009-01-241-2/+2
| | | | | This was caused by calling reverse on the list, which reverses the list in place and returns None. We really need tests for this.
* Fixed the gzip archive creation using python gzip moduleEric Jonas2009-01-241-1/+8
| | | | (cherry picked from commit 160bd2bb74d88c110874c21635e24cc74ef58459)
* Corrected conflict with pep8 changes from apollo13.Michael Trier2008-12-151-9/+9
|\
| * pep008!Florian Apolloner2008-12-151-8/+8
| |
* | add a path parameter to most commit methodsPaul Sowden2008-12-151-10/+25
| | | | | | | | | | The path parameter allows you to specify a path to constrain queries by. This changes potentially breaks backwards compatibility for the Repo.commits and Repo.commits_since methods as it moves the positional arguments. (cherry picked from commit cc8a20e78da4864060bd0c9279633009bc10d871)
* | remove ambiguity between paths and treeishsPaul Sowden2008-12-151-6/+5
|/ | | | | When calling commands that accept treeish and path arguments and there is a path with the same name as a treeish git cowardly refuses to pick one and asks for the command to use the unambiguous syntax where '--' seperates the treeish from the paths. Add '--' to the git commands to indicate that the argument is a treeish and not a path. (cherry picked from commit a9a57fa93a2b121ab9b17fcd6062b9a9c9740883)
* Replace GitPython with git in repr() outputs.Steve Frécinaux2008-09-171-16/+16
| | | | | The imported module is called git (as in "import git"), so it's less confusing to do so than to call everything GitPython.something.
* Merge branch 'master' of git://gitorious.org/git-python/dokais-cloneMichael Trier2008-09-141-0/+31
|\
| * Added a read-only Repo.active_branch property which returns the name of the ↵Kai Lautaportti2008-09-121-0/+14
| | | | | | | | currently active branch.
| * Cosmetic fixes to be consistent with the overall coding style.Kai Lautaportti2008-09-121-4/+5
| |
| * Added a read-only property Repo.is_dirty which reflects the status of theKai Lautaportti2008-09-121-0/+16
| | | | | | | | | | | | | | 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.
* | Allow modifying the project descriptionSteve Frécinaux2008-09-071-14/+13
| | | | | | | | | | | | | | | | Do this: >>> repo.description = "Foo Bar" >>> repo.description 'Foo Bar'
* | Make daemon export a property of git.RepoSteve Frécinaux2008-09-071-19/+16
| | | | | | | | | | | | | | Now you can do this: >>> exported = repo.daemon_export >>> repo.daemon_export = True
* | Initialize trees completely in tree.__bake__().Steve Frécinaux2008-09-051-5/+3
|/ | | | | | | | | | | 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)
* Fix unneeded dict unpacking.Steve Frécinaux2008-09-051-2/+2
|
* Merge branch 'master' of git@gitorious.org:git-python/mainlineFlorian Apolloner2008-08-211-1/+1
|\
| * fixed it so init actually creates a bare repo. Thank you Daniel Watkins.Michael Trier2008-08-181-1/+1
| |
* | fixed unneeded list unpackingFlorian Apolloner2008-08-211-3/+3
|/
* Fix use of bare repositories.Jelmer Vernooij2008-07-281-1/+2
| | | | (cherry picked from commit 80f8a18a69e307f6ea0bfeb14791fc75e239faa2)
* Added license information to all files.Michael Trier2008-07-161-0/+6
|
* fixed ↵Florian Apolloner2008-06-251-27/+29
| | | | http://groups.google.com/group/git-python/browse_thread/thread/b8f3580abf31f9db?hl=en# and passed Git a working_tree again (sort of).
* added os.path.expanduser to the repo initializationFlorian Apolloner2008-06-211-0/+1
|
* cmd: better support for bare repositoriesDavid Aguilar2008-06-151-1/+1
| | | | | | | | | | | | | | | | | | 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>
* repo: these changes make Govind's latest changes pass the test casesDavid Aguilar2008-06-121-1/+6
| | | | Signed-off-by: David Aguilar <davvid@gmail.com>
* Determine git_dir and git_work_tree in python.Govind Salinas2008-06-121-6/+6
| | | | | | | | 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>
* stupid typo *grr*Florian Apolloner2008-06-111-2/+2
|
* removed to much :þFlorian Apolloner2008-06-111-0/+4
|
* fixed init_bareFlorian Apolloner2008-06-111-10/+1
|
* renamed gitter to cmd since that makes more sense. Fixed up changes doc.Michael Trier2008-05-311-1/+1
|
* renamed git_python to git. Removed pop_key and replaced with dict.pop. Fixed ↵Michael Trier2008-05-301-0/+435
up tests so they pass except for stderr test. Modified version information retrieval.