diff options
author | Brad King <brad.king@kitware.com> | 2019-11-06 17:02:05 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2019-11-11 12:24:29 (GMT) |
commit | 75a5d1d4b17634e8ff3df6cdd3fce083aa23495c (patch) | |
tree | 68eaa7d195acf211eaea8c49b169219234762c7f /Help/dev/review.rst | |
parent | 12fd957ce3dc1d66a9161594679558fd8a73c284 (diff) | |
download | CMake-75a5d1d4b17634e8ff3df6cdd3fce083aa23495c.zip CMake-75a5d1d4b17634e8ff3df6cdd3fce083aa23495c.tar.gz CMake-75a5d1d4b17634e8ff3df6cdd3fce083aa23495c.tar.bz2 |
Help/dev: Document "Backport:" footer for MR descriptions
Diffstat (limited to 'Help/dev/review.rst')
-rw-r--r-- | Help/dev/review.rst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Help/dev/review.rst b/Help/dev/review.rst index 36b9789..8ec41d2 100644 --- a/Help/dev/review.rst +++ b/Help/dev/review.rst @@ -433,6 +433,21 @@ Additionally, ``Do: merge`` extracts configuration from trailing lines in the MR description (the following have no effect if used in a MR comment instead): +* ``Backport: release[:<commit-ish>]``: merge the topic branch into + the ``release`` branch to backport the change. This is allowed + only if the topic branch is based on a commit in ``release`` already. + If only part of the topic branch should be backported, specify it as + ``:<commit-ish>``. The ``<commit-ish>`` may use `git rev-parse`_ + syntax to reference commits relative to the topic ``HEAD``. + See additional `backport instructions`_ for details. + For example: + + ``Backport: release`` + Merge the topic branch head into both ``release`` and ``master``. + ``Backport: release:HEAD~1^2`` + Merge the topic branch head's parent's second parent commit into + the ``release`` branch. Merge the topic branch head to ``master``. + * ``Topic-rename: <topic>``: substitute ``<topic>`` for the name of the MR topic branch in the constructed merge commit message. It is also used in merge commits constructed by ``Do: stage``. @@ -440,6 +455,8 @@ comment instead): rename set in the MR description. .. _`CMake GitLab Project Masters`: https://gitlab.kitware.com/cmake/cmake/settings/members +.. _`backport instructions`: https://gitlab.kitware.com/utils/git-workflow/wikis/Backport-topics +.. _`git rev-parse`: https://git-scm.com/docs/git-rev-parse Close ----- |