summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-12-30 16:17:28 +0100
committerSebastian Thiel <byronimo@gmail.com>2009-12-30 16:17:28 +0100
commitd86e77edd500f09e3e19017c974b525643fbd539 (patch)
treee2c4bbdb4aff635b9480109d7dcef17a63c050b3 /doc
parent1b3feddd1269a0b0976f4eef2093cb0dbf258f99 (diff)
downloadgitpython-d86e77edd500f09e3e19017c974b525643fbd539.tar.gz
tree: implemented recursive paths in __div__ and __getitem__ method, allowing the keys to contain slashes; adjusted test to check for this
Diffstat (limited to 'doc')
-rw-r--r--doc/tutorial.rst2
1 files changed, 2 insertions, 0 deletions
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"
<git.Tree "c1c7214dde86f76bc3e18806ac1f47c38b2b7a30">
+ >>> tree/"dir/file" == blob.sha
You can also get a tree directly from the repository if you know its name.