docs: Fix 'Diff' example

t1 should point to a tree, not a commit.
This commit is contained in:
Eric Davis
2012-08-25 20:20:40 -07:00
parent 6e06863722
commit fb49990640

View File

@@ -211,7 +211,7 @@ A diff shows the changes between trees, an index or the working dir::
# Diff two trees
>>> t0 = repo.head.tree
>>> t1 = repo.head.parents[0]
>>> t1 = repo.head.parents[0].tree
>>> diff = t0.diff(t1)
>>> diff