diff options
| author | Michael Trier <mtrier@gmail.com> | 2008-09-14 10:43:41 -0400 |
|---|---|---|
| committer | Michael Trier <mtrier@gmail.com> | 2008-09-14 10:43:41 -0400 |
| commit | 5613079f2494808f048b81815bf708debf7339d2 (patch) | |
| tree | bd1af57549b98d7c8b28cc1a867df75bfd542044 /doc/tutorial.txt | |
| parent | 3131d1a5295508f583ae22788a1065144bec3cee (diff) | |
| parent | a2856af1d9289ee086b10768b53b65e0fd13a335 (diff) | |
| download | GitPython-5613079f2494808f048b81815bf708debf7339d2.tar.gz GitPython-5613079f2494808f048b81815bf708debf7339d2.zip | |
Merge branch 'master' of git://gitorious.org/git-python/nud
Diffstat (limited to 'doc/tutorial.txt')
| -rw-r--r-- | doc/tutorial.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/tutorial.txt b/doc/tutorial.txt index 5ad56129..42e015b6 100644 --- a/doc/tutorial.txt +++ b/doc/tutorial.txt @@ -124,8 +124,8 @@ This tree contains three ``Blob`` objects and one ``Tree`` object. The trees are subdirectories and the blobs are files. Trees below the root have additional attributes. - >>> contents = tree.contents[-2] - <GitPython.Tree "e5445b9db4a9f08d5b4de4e29e61dffda2f386ba"> + >>> contents = tree["lib"] + <GitPython.Tree "c1c7214dde86f76bc3e18806ac1f47c38b2b7a3"> >>> contents.name 'test' @@ -134,7 +134,8 @@ additional attributes. '040000' There is a convenience method that allows you to get a named sub-object -from a tree. +from a tree with a syntax similar to how paths are written in an unix +system. >>> tree/"lib" <GitPython.Tree "c1c7214dde86f76bc3e18806ac1f47c38b2b7a30"> |
