summaryrefslogtreecommitdiff
path: root/docs/gl_objects/branches.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/gl_objects/branches.rst')
-rw-r--r--docs/gl_objects/branches.rst42
1 files changed, 0 insertions, 42 deletions
diff --git a/docs/gl_objects/branches.rst b/docs/gl_objects/branches.rst
deleted file mode 100644
index aeba8ea..0000000
--- a/docs/gl_objects/branches.rst
+++ /dev/null
@@ -1,42 +0,0 @@
-########
-Branches
-########
-
-References
-----------
-
-* v4 API:
-
- + :class:`gitlab.v4.objects.ProjectBranch`
- + :class:`gitlab.v4.objects.ProjectBranchManager`
- + :attr:`gitlab.v4.objects.Project.branches`
-
-* GitLab API: https://docs.gitlab.com/ce/api/branches.html
-
-Examples
---------
-
-Get the list of branches for a repository::
-
- branches = project.branches.list()
-
-Get a single repository branch::
-
- branch = project.branches.get('master')
-
-Create a repository branch::
-
- branch = project.branches.create({'branch': 'feature1',
- 'ref': 'master'})
-
-Delete a repository branch::
-
- project.branches.delete('feature1')
- # or
- branch.delete()
-
-Delete the merged branches for a project::
-
- project.delete_merged_branches()
-
-To manage protected branches, see :doc:`/gl_objects/protected_branches`.