You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/quickstart.rst
+68-65
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,74 @@ Welcome to the GitPython Quickstart Guide! Designed for developers seeking a pra
11
11
12
12
All code presented here originated from `***** insert link **** <https://github.com/gitpython-developers/GitPython>`_ to assure correctness. Knowing this should also allow you to more easily run the code for your own testing purposes. All you need is a developer installation of git-python.
13
13
14
+
15
+
Trees & Blobs
16
+
**************
17
+
18
+
Latest Commit Tree
19
+
##################
20
+
21
+
.. literalinclude:: ../../test/test_quick_doc.py
22
+
:language: python
23
+
:dedent: 8
24
+
:start-after: # [12-test_cloned_repo_object]
25
+
:end-before: # ![12-test_cloned_repo_object]
26
+
27
+
Any Commit Tree
28
+
###############
29
+
30
+
.. literalinclude:: ../../test/test_quick_doc.py
31
+
:language: python
32
+
:dedent: 8
33
+
:start-after: # [13-test_cloned_repo_object]
34
+
:end-before: # ![13-test_cloned_repo_object]
35
+
36
+
Display level 1 Contents
37
+
########################
38
+
39
+
.. literalinclude:: ../../test/test_quick_doc.py
40
+
:language: python
41
+
:dedent: 8
42
+
:start-after: # [14-test_cloned_repo_object]
43
+
:end-before: # ![14-test_cloned_repo_object]
44
+
45
+
Recurse through the Tree
46
+
########################
47
+
48
+
.. literalinclude:: ../../test/test_quick_doc.py
49
+
:language: python
50
+
:dedent: 8
51
+
:start-after: # [15-test_cloned_repo_object]
52
+
:end-before: # ![15-test_cloned_repo_object]
53
+
54
+
.. literalinclude:: ../../test/test_quick_doc.py
55
+
:language: python
56
+
:dedent: 8
57
+
:start-after: # [16-test_cloned_repo_object]
58
+
:end-before: # ![16-test_cloned_repo_object]
59
+
60
+
61
+
62
+
63
+
Printing text files
64
+
####################
65
+
66
+
.. literalinclude:: ../../test/test_quick_doc.py
67
+
:language: python
68
+
:dedent: 8
69
+
:start-after: # [17-test_cloned_repo_object]
70
+
:end-before: # ![17-test_cloned_repo_object]
71
+
72
+
.. literalinclude:: ../../test/test_quick_doc.py
73
+
:language: python
74
+
:dedent: 8
75
+
:start-after: # [18-test_cloned_repo_object]
76
+
:end-before: # ![18-test_cloned_repo_object]
77
+
78
+
79
+
80
+
81
+
14
82
git.Repo
15
83
********
16
84
@@ -139,68 +207,3 @@ returns list of :class:`Commit <git.objects.commit.Commit>` objects
0 commit comments