summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2018-05-28 07:14:58 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2018-05-28 07:14:58 +0200
commit32569ea27d36c7341b031f11d14f79fd6abd373f (patch)
treec9e1b8e0b4f8430bfa0fbe0fffcbbd35d7376468 /docs
parent63a4c7c95112f6c6aed6e9fa6cf4afd88f0b80e7 (diff)
downloadgitlab-32569ea27d36c7341b031f11d14f79fd6abd373f.tar.gz
Implement commit.refs()
Diffstat (limited to 'docs')
-rw-r--r--docs/gl_objects/commits.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/gl_objects/commits.rst b/docs/gl_objects/commits.rst
index 22e23f6..d04d731 100644
--- a/docs/gl_objects/commits.rst
+++ b/docs/gl_objects/commits.rst
@@ -65,6 +65,12 @@ Cherry-pick a commit into another branch::
commit.cherry_pick(branch='target_branch')
+Get the references the commit has been pushed to (branches and tags)::
+
+ commit.refs() # all references
+ commit.refs('tag') # only tags
+ commit.refs('branch') # only branches
+
Commit comments
===============