summaryrefslogtreecommitdiff
path: root/docs/gl_objects
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2020-02-18 17:15:57 +0100
committerNejc Habjan <hab.nejc@gmail.com>2020-02-18 17:17:28 +0100
commit5298964ee7db8a610f23de2d69aad8467727ca97 (patch)
tree0628312b25920cd8107026fd8766eb7d737b122b /docs/gl_objects
parent19242c398b9074e04e35cc687c31c543a10db280 (diff)
downloadgitlab-5298964ee7db8a610f23de2d69aad8467727ca97.tar.gz
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