Skip to content

Commit 9995925

Browse files
committed
added a note about how maintenance branches work
1 parent 966f3c1 commit 9995925

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

contributing/code/patches.rst

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,18 @@ environment as explained in the dedicated :doc:`document <tests>`.
5454
Working on a Patch
5555
------------------
5656

57-
Each time you want to work on a patch for a bug or on an enhancement, create a
58-
topic branch:
57+
Each time you want to work on a patch for a bug or on an enhancement, you need
58+
to create a topic branch.
59+
60+
The branch should be based on the `master` branch if you want to add a new
61+
feature. But if you want to fix a bug, use the oldest but still maintained
62+
version of Symfony where the bug happens (like `2.0`).
63+
64+
Create the topic branch with the following command:
5965

6066
.. code-block:: bash
6167
62-
$ git checkout -b BRANCH_NAME
68+
$ git checkout -b BRANCH_NAME master
6369
6470
.. tip::
6571

@@ -149,6 +155,11 @@ with master, don't merge; and force the push to the origin:
149155
All patches you are going to submit must be released under the MIT
150156
license, unless explicitly specified in the code.
151157

158+
All bug fixes merged into maintenance branches are also merged into more
159+
recent branches on a regular basis. For instance, if you submit a patch for
160+
the `2.0` branch, the patch will also be applied by the core team on the
161+
`master` branch.
162+
152163
.. _ProGit: http://progit.org/
153164
.. _GitHub: https://github.com/signup/free
154165
.. _Symfony2 repository: https://github.com/symfony/symfony

0 commit comments

Comments
 (0)