summaryrefslogtreecommitdiff
path: root/lib/git/index.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-21 18:45:41 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-21 20:14:52 +0200
commit2e68d907022c84392597e05afc22d9fe06bf0927 (patch)
tree57288a5bddc55baff4bae0e7b9ed67276ac8bc55 /lib/git/index.py
parentd97afa24ad1ae453002357e5023f3a116f76fb17 (diff)
downloadgitpython-2e68d907022c84392597e05afc22d9fe06bf0927.tar.gz
tree.traverse: Added prune functionality - previously the predciate did both, pruning and preventing to return items
Diffstat (limited to 'lib/git/index.py')
-rw-r--r--lib/git/index.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/git/index.py b/lib/git/index.py
index 1042d7b8..7481f4ce 100644
--- a/lib/git/index.py
+++ b/lib/git/index.py
@@ -284,7 +284,7 @@ class Index(object):
``*treeish``
One, two or three Tree Objects or Commits. The result changes according to the
- amoutn of trees.
+ amount of trees.
If 1 Tree is given, it will just be read into a new index
If 2 Trees are given, they will be merged into a new index using a
two way merge algorithm. Tree 1 is the 'current' tree, tree 2 is the 'other'
@@ -300,6 +300,10 @@ class Index(object):
In the three-way merge case, --aggressive will be specified to automatically
resolve more cases in a commonly correct manner. Specify trivial=True as kwarg
to override that.
+
+ As the underlying git-read-tree command takes into account the current index,
+ it will be temporarily moved out of the way to assure there are no unsuspected
+ interferences.
"""
if len(treeish) == 0 or len(treeish) > 3:
raise ValueError("Please specify between 1 and 3 treeish, got %i" % len(treeish))