| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
to the AUTHORS file.
|
|
|
|
| |
with a non-mock test
|
| |
|
| |
|
|
|
|
|
| |
This was caused by calling reverse on the list, which reverses the list in
place and returns None. We really need tests for this.
|
|
|
|
| |
(cherry picked from commit 160bd2bb74d88c110874c21635e24cc74ef58459)
|
|\ |
|
| | |
|
| |
| |
| |
| |
| | |
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)
|
|/
|
|
|
| |
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)
|
|
|
|
|
| |
The imported module is called git (as in "import git"), so it's less
confusing to do so than to call everything GitPython.something.
|
|\ |
|
| |
| |
| |
| | |
currently active branch.
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Do this:
>>> repo.description = "Foo Bar"
>>> repo.description
'Foo Bar'
|
| |
| |
| |
| |
| |
| |
| | |
Now you can do this:
>>> exported = repo.daemon_export
>>> repo.daemon_export = True
|
|/
|
|
|
|
|
|
|
|
|
| |
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)
|
| |
|
|\ |
|
| | |
|
|/ |
|
|
|
|
| |
(cherry picked from commit 80f8a18a69e307f6ea0bfeb14791fc75e239faa2)
|
| |
|
|
|
|
| |
http://groups.google.com/group/git-python/browse_thread/thread/b8f3580abf31f9db?hl=en# and passed Git a working_tree again (sort of).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: David Aguilar <davvid@gmail.com>
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
| |
|
| |
|
| |
|
|
up tests so they pass except for stderr test. Modified version information retrieval.
|