There was an error while loading. Please reload this page.
1 parent 2a45f94 commit ef4d6d5Copy full SHA for ef4d6d5
2 files changed
doc/source/quickstart.rst
@@ -75,12 +75,6 @@ Display level 1 Contents
75
:start-after: # [14-test_cloned_repo_object]
76
:end-before: # ![14-test_cloned_repo_object]
77
78
- .. literalinclude:: ../../test/test_quick_doc.py
79
- :language: python
80
- :dedent: 8
81
- :start-after: # [14.1-test_cloned_repo_object]
82
- :end-before: # ![14.1-test_cloned_repo_object]
83
-
84
Recurse through the Tree
85
########################
86
@@ -242,4 +236,3 @@ Compare commit to commit
242
236
:end-before: # ![11.3-test_cloned_repo_object]
243
237
244
238
245
test/test_quick_doc.py
@@ -163,25 +163,14 @@ def test_cloned_repo_object(self, local_dir):
163
164
# Iterating through tree
165
# [14-test_cloned_repo_object]
166
- files_and_dirs = [entry for entry in tree]
167
- files_and_dirs
168
169
- # Output
170
- # [<git.Commit "SHA1-HEX_HASH">,
171
- # <git.Commit "SHA1-HEX_HASH">,
172
- # <git.Commit "SHA1-HEX_HASH">]
173
174
- # ![14-test_cloned_repo_object]
175
176
- # [14.1-test_cloned_repo_object]
177
files_and_dirs = [(entry, entry.name, entry.type) for entry in tree]
178
files_and_dirs
179
180
# Output
181
# [(< git.Tree "SHA1-HEX_HASH" >, 'Downloads', 'tree'),
182
# (< git.Tree "SHA1-HEX_HASH" >, 'dir1', 'tree'),
183
# (< git.Blob "SHA1-HEX_HASH" >, 'file4.txt', 'blob')]
184
- # ![14.1-test_cloned_repo_object]
+ # ![14-test_cloned_repo_object]
185
186
# [15-test_cloned_repo_object]
187
def print_files_from_git(root, level=0):
0 commit comments