From fb4999064029d868213b8d2b9120607314515f3c Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Sat, 25 Aug 2012 20:20:40 -0700 Subject: [PATCH] docs: Fix 'Diff' example t1 should point to a tree, not a commit. --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index d81c0b2..5df53c8 100644 --- a/README.rst +++ b/README.rst @@ -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