@@ -27,10 +27,10 @@ From the ``Repo`` object, you can get a list of ``Commit``
2727objects.
2828
2929 >>> repo.commits()
30- [<GitPython .Commit "207c0c4418115df0d30820ab1a9acd2ea4bf4431">,
31- <GitPython .Commit "a91c45eee0b41bf3cdaad3418ca3850664c4a4b4">,
32- <GitPython .Commit "e17c7e11aed9e94d2159e549a99b966912ce1091">,
33- <GitPython .Commit "bd795df2d0e07d10e0298670005c0e9d9a5ed867">]
30+ [<git .Commit "207c0c4418115df0d30820ab1a9acd2ea4bf4431">,
31+ <git .Commit "a91c45eee0b41bf3cdaad3418ca3850664c4a4b4">,
32+ <git .Commit "e17c7e11aed9e94d2159e549a99b966912ce1091">,
33+ <git .Commit "bd795df2d0e07d10e0298670005c0e9d9a5ed867">]
3434
3535Called without arguments, ``Repo.commits`` returns a list of up to ten commits
3636reachable by the master branch (starting at the latest commit). You can ask
@@ -61,19 +61,19 @@ Commit objects contain information about a specific commit.
6161 '207c0c4418115df0d30820ab1a9acd2ea4bf4431'
6262
6363 >>> head.parents
64- [<GitPython .Commit "a91c45eee0b41bf3cdaad3418ca3850664c4a4b4">]
64+ [<git .Commit "a91c45eee0b41bf3cdaad3418ca3850664c4a4b4">]
6565
6666 >>> head.tree
67- <GitPython .Tree "563413aedbeda425d8d9dcbb744247d0c3e8a0ac">
67+ <git .Tree "563413aedbeda425d8d9dcbb744247d0c3e8a0ac">
6868
6969 >>> head.author
70- <GitPython .Actor "Michael Trier <mtrier@gmail.com>">
70+ <git .Actor "Michael Trier <mtrier@gmail.com>">
7171
7272 >>> head.authored_date
7373 (2008, 5, 7, 5, 0, 56, 2, 128, 0)
7474
7575 >>> head.committer
76- <GitPython .Actor "Michael Trier <mtrier@gmail.com>">
76+ <git .Actor "Michael Trier <mtrier@gmail.com>">
7777
7878 >>> head.committed_date
7979 (2008, 5, 7, 5, 0, 56, 2, 128, 0)
@@ -107,25 +107,25 @@ A tree records pointers to the contents of a directory. Let's say you want
107107the root tree of the latest commit on the master branch.
108108
109109 >>> tree = repo.commits()[0].tree
110- <GitPython .Tree "a006b5b1a8115185a228b7514cdcd46fed90dc92">
110+ <git .Tree "a006b5b1a8115185a228b7514cdcd46fed90dc92">
111111
112112 >>> tree.id
113113 'a006b5b1a8115185a228b7514cdcd46fed90dc92'
114114
115115Once you have a tree, you can get the contents.
116116
117117 >>> contents = tree.contents
118- [<GitPython .Blob "6a91a439ea968bf2f5ce8bb1cd8ddf5bf2cad6c7">,
119- <GitPython .Blob "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391">,
120- <GitPython .Tree "eaa0090ec96b054e425603480519e7cf587adfc3">,
121- <GitPython .Blob "980e72ae16b5378009ba5dfd6772b59fe7ccd2df">]
118+ [<git .Blob "6a91a439ea968bf2f5ce8bb1cd8ddf5bf2cad6c7">,
119+ <git .Blob "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391">,
120+ <git .Tree "eaa0090ec96b054e425603480519e7cf587adfc3">,
121+ <git .Blob "980e72ae16b5378009ba5dfd6772b59fe7ccd2df">]
122122
123123This tree contains three ``Blob`` objects and one ``Tree`` object. The trees
124124are subdirectories and the blobs are files. Trees below the root have
125125additional attributes.
126126
127127 >>> contents = tree["lib"]
128- <GitPython .Tree "c1c7214dde86f76bc3e18806ac1f47c38b2b7a3">
128+ <git .Tree "c1c7214dde86f76bc3e18806ac1f47c38b2b7a3">
129129
130130 >>> contents.name
131131 'test'
@@ -138,23 +138,23 @@ from a tree with a syntax similar to how paths are written in an unix
138138system.
139139
140140 >>> tree/"lib"
141- <GitPython .Tree "c1c7214dde86f76bc3e18806ac1f47c38b2b7a30">
141+ <git .Tree "c1c7214dde86f76bc3e18806ac1f47c38b2b7a30">
142142
143143You can also get a tree directly from the repository if you know its name.
144144
145145 >>> repo.tree()
146- <GitPython .Tree "master">
146+ <git .Tree "master">
147147
148148 >>> repo.tree("c1c7214dde86f76bc3e18806ac1f47c38b2b7a30")
149- <GitPython .Tree "c1c7214dde86f76bc3e18806ac1f47c38b2b7a30">
149+ <git .Tree "c1c7214dde86f76bc3e18806ac1f47c38b2b7a30">
150150
151151The Blob object
152152***************
153153
154154A blob represents a file. Trees often contain blobs.
155155
156156 >>> blob = tree.contents[-1]
157- <GitPython .Blob "b19574431a073333ea09346eafd64e7b1908ef49">
157+ <git .Blob "b19574431a073333ea09346eafd64e7b1908ef49">
158158
159159A blob has certain attributes.
160160
@@ -178,7 +178,7 @@ You can get the data of a blob as a string.
178178You can also get a blob directly from the repo if you know its name.
179179
180180 >>> repo.blob("b19574431a073333ea09346eafd64e7b1908ef49")
181- <GitPython .Blob "b19574431a073333ea09346eafd64e7b1908ef49">
181+ <git .Blob "b19574431a073333ea09346eafd64e7b1908ef49">
182182
183183What Else?
184184**********
0 commit comments