From d86e77edd500f09e3e19017c974b525643fbd539 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 30 Dec 2009 16:17:28 +0100 Subject: tree: implemented recursive paths in __div__ and __getitem__ method, allowing the keys to contain slashes; adjusted test to check for this --- doc/tutorial.rst | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/tutorial.rst') diff --git a/doc/tutorial.rst b/doc/tutorial.rst index 695e9812..86012335 100644 --- a/doc/tutorial.rst +++ b/doc/tutorial.rst @@ -239,6 +239,7 @@ query entries by name. 'dir/file' >>> blob.abspath '/Users/mtrier/Development/git-python/dir/file' + >>>tree['dir/file'].sha == blob.sha There is a convenience method that allows you to get a named sub-object from a tree with a syntax similar to how paths are written in an unix @@ -246,6 +247,7 @@ system. >>> tree/"lib" + >>> tree/"dir/file" == blob.sha You can also get a tree directly from the repository if you know its name. -- cgit v1.2.1