@@ -88,6 +88,57 @@ Archive/unarchive a project:
88
88
conflict with a previous misuse of the ``archive `` method (deprecated but
89
89
not yet removed).
90
90
91
+ Repository
92
+ ----------
93
+
94
+ The following examples show how you can manipulate the project code repository.
95
+
96
+ List the repository tree:
97
+
98
+ .. literalinclude :: projects.py
99
+ :start-after: # repository tree
100
+ :end-before: # end repository tree
101
+
102
+ Get the content of a file for a commit:
103
+
104
+ .. literalinclude :: projects.py
105
+ :start-after: # repository blob
106
+ :end-before: # end repository blob
107
+
108
+ Get the repository archive:
109
+
110
+ .. literalinclude :: projects.py
111
+ :start-after: # repository archive
112
+ :end-before: # end repository archive
113
+
114
+ .. warning ::
115
+
116
+ Archives are entirely stored in memory unless you use the streaming feature.
117
+ See :ref: `the artifacts example <streaming_example >`.
118
+
119
+ Get the content of a file using the blob id:
120
+
121
+ .. literalinclude :: projects.py
122
+ :start-after: # repository raw_blob
123
+ :end-before: # end repository raw_blob
124
+
125
+ .. warning ::
126
+
127
+ Blobs are entirely stored in memory unless you use the streaming feature.
128
+ See :ref: `the artifacts example <streaming_example >`.
129
+
130
+ Compare two branches, tags or commits:
131
+
132
+ .. literalinclude :: projects.py
133
+ :start-after: # repository compare
134
+ :end-before: # end repository compare
135
+
136
+ Get a list of contributors for the repository:
137
+
138
+ .. literalinclude :: projects.py
139
+ :start-after: # repository contributors
140
+ :end-before: # end repository contributors
141
+
91
142
Events
92
143
------
93
144
0 commit comments