From 5298964ee7db8a610f23de2d69aad8467727ca97 Mon Sep 17 00:00:00 2001 From: Nejc Habjan Date: Tue, 18 Feb 2020 17:15:57 +0100 Subject: feat: add support for commit revert API (#991) --- docs/gl_objects/commits.rst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') 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 -- cgit v1.2.1