From 32ff474dc18475d64e674b6b379fe925bfae4525 Mon Sep 17 00:00:00 2001 From: Eric Schrijver Date: Wed, 5 Sep 2012 03:03:54 +0300 Subject: [PATCH] More obvious diff example By diffing HEAD~1 with HEAD, we show the effect of the latest commit. The provided example diffed HEAD with HEAD~1, which shows a diff that goes back in time. --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 5df53c8..afdeeb8 100644 --- a/README.rst +++ b/README.rst @@ -212,7 +212,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].tree - >>> diff = t0.diff(t1) + >>> diff = t1.diff(t0) >>> diff # Diff a tree with the index