| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -75,12 +75,6 @@ Display level 1 Contents | |||
| 75 | 75 | :start-after: # [14-test_cloned_repo_object] | |
| 76 | 76 | :end-before: # ![14-test_cloned_repo_object] | |
| 77 | 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 | 78 | Recurse through the Tree | |
| 85 | 79 | ######################## | |
| 86 | 80 | ||
@@ -242,4 +236,3 @@ Compare commit to commit | |||
| 242 | 236 | :end-before: # ![11.3-test_cloned_repo_object] | |
| 243 | 237 | ||
| 244 | 238 | ||
| 245 | - | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -163,25 +163,14 @@ def test_cloned_repo_object(self, local_dir): | |||
| 163 | 163 | ||
| 164 | 164 | # Iterating through tree | |
| 165 | 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 | 166 | files_and_dirs = [(entry, entry.name, entry.type) for entry in tree] | |
| 178 | 167 | files_and_dirs | |
| 179 | 168 | ||
| 180 | 169 | # Output | |
| 181 | 170 | # [(< git.Tree "SHA1-HEX_HASH" >, 'Downloads', 'tree'), | |
| 182 | 171 | # (< git.Tree "SHA1-HEX_HASH" >, 'dir1', 'tree'), | |
| 183 | 172 | # (< git.Blob "SHA1-HEX_HASH" >, 'file4.txt', 'blob')] | |
| 184 | - # ![14.1-test_cloned_repo_object] | ||
| 173 | + # ![14-test_cloned_repo_object] | ||
| 185 | 174 | ||
| 186 | 175 | # [15-test_cloned_repo_object] | |
| 187 | 176 | def print_files_from_git(root, level=0): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments