summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2018-05-29 08:15:55 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2018-05-29 08:15:55 +0200
commit096d9ecde6390a4d2795d0347280ccb2c1517143 (patch)
tree9d8804fd6b29af0d059dc5a2ba596851ddda7f7a /docs
parent51718ea7fb566d8ebeb310520c8e6557e19152e0 (diff)
downloadgitlab-096d9ecde6390a4d2795d0347280ccb2c1517143.tar.gz
Add missing project attributes
Diffstat (limited to 'docs')
-rw-r--r--docs/gl_objects/projects.rst13
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')