diff options
Diffstat (limited to 'docs/gl_objects')
| -rw-r--r-- | docs/gl_objects/projects.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/gl_objects/projects.rst b/docs/gl_objects/projects.rst index b02cdd5..57d6b76 100644 --- a/docs/gl_objects/projects.rst +++ b/docs/gl_objects/projects.rst @@ -103,6 +103,10 @@ Create/delete a fork relation between projects (requires admin permissions):: project.create_fork_relation(source_project.id) project.delete_fork_relation() +Get languages used in the project with percentage value:: + + languages = project.languages() + Star/unstar a project:: project.star() @@ -157,6 +161,15 @@ Get the content of a file using the blob id:: Blobs are entirely stored in memory unless you use the streaming feature. See :ref:`the artifacts example <streaming_example>`. +Get a snapshot of the repository:: + + tar_file = project.snapshot() + +.. warning:: + + Snapshots are entirely stored in memory unless you use the streaming + feature. See :ref:`the artifacts example <streaming_example>`. + Compare two branches, tags or commits:: result = project.repository_compare('master', 'branch1') |
