summaryrefslogtreecommitdiff
path: root/docs/gl_objects
diff options
context:
space:
mode:
authorMax Wittig <max.wittig@siemens.com>2020-02-20 09:06:23 +0100
committerGitHub <noreply@github.com>2020-02-20 09:06:23 +0100
commite8f0921d164c4b7db78e2f62e75eb32094b4456e (patch)
treed603f98235d9bfb6b1968a4e3412bb0d8efe72ba /docs/gl_objects
parent19242c398b9074e04e35cc687c31c543a10db280 (diff)
parentcb436951b1fde9c010e966819c75d0d7adacf17d (diff)
downloadgitlab-e8f0921d164c4b7db78e2f62e75eb32094b4456e.tar.gz
Merge pull request #1020 from nejch/feat/revert-commit-api
feat: add support for commit revert API (#991)
Diffstat (limited to 'docs/gl_objects')
-rw-r--r--docs/gl_objects/commits.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/gl_objects/commits.rst b/docs/gl_objects/commits.rst
index 97cd1c4..abfedc8 100644
--- a/docs/gl_objects/commits.rst
+++ b/docs/gl_objects/commits.rst
@@ -72,6 +72,10 @@ Cherry-pick a commit into another branch::
commit.cherry_pick(branch='target_branch')
+Revert a commit on a given branch::
+
+ commit.revert(branch='target_branch')
+
Get the references the commit has been pushed to (branches and tags)::
commit.refs() # all references