diff options
| author | Gauvain Pocentek <gauvain@pocentek.net> | 2018-05-29 08:15:55 +0200 |
|---|---|---|
| committer | Gauvain Pocentek <gauvain@pocentek.net> | 2018-05-29 08:15:55 +0200 |
| commit | 096d9ecde6390a4d2795d0347280ccb2c1517143 (patch) | |
| tree | 9d8804fd6b29af0d059dc5a2ba596851ddda7f7a /docs | |
| parent | 51718ea7fb566d8ebeb310520c8e6557e19152e0 (diff) | |
| download | gitlab-096d9ecde6390a4d2795d0347280ccb2c1517143.tar.gz | |
Add missing project attributes
Diffstat (limited to 'docs')
| -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') |
