summaryrefslogtreecommitdiff
path: root/lib/git/diff.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-11-25 15:14:10 +0100
committerSebastian Thiel <byronimo@gmail.com>2009-11-25 15:28:32 +0100
commite40b5f075bdb9d6c2992a0a1cf05f7f6f4f101a3 (patch)
tree6719eafbfad575cd112c34851db1cdff89caadd1 /lib/git/diff.py
parentc5f92b17729e255ca01ffb4ed215d132e05ba4da (diff)
downloadgitpython-e40b5f075bdb9d6c2992a0a1cf05f7f6f4f101a3.tar.gz
index.write_tree: fixed bug that would cause the written tree not to contain any of our changes entries as it would in fact write a possibly cached tree stored in our extension data.It was solved by simply ignoring that extension data when writing the index for tree creation. A test was added for this as well
Diffstat (limited to 'lib/git/diff.py')
-rw-r--r--lib/git/diff.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/git/diff.py b/lib/git/diff.py
index 3a94d0c2..dfeb7064 100644
--- a/lib/git/diff.py
+++ b/lib/git/diff.py
@@ -39,6 +39,7 @@ class Diffable(object):
``other``
Is the item to compare us with.
If None, we will be compared to the working tree.
+ If Treeish, it will be compared against the respective tree
If Index ( type ), it will be compared against the index.
It defaults to Index to assure the method will not by-default fail
on bare repositories.