Skip to content

Commit 9898293

Browse files
edorianiluuu1994
andauthored
Release Process: Add commands for merge up (#22096)
As we list all other commands to run, this was added for consistency Co-authored-by: Ilija Tovilo <ilija.tovilo@me.com>
1 parent 533162d commit 9898293

1 file changed

Lines changed: 20 additions & 5 deletions

File tree

docs/release-process.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -301,12 +301,27 @@ slightly different steps. We'll call attention where the steps differ.
301301
> Only release tags should have version numbers in these files that do not
302302
> end in `-dev` (e.g., `8.1.7`, `8.1.7RC1`, `8.2.0alpha1`, etc.).
303303
304-
Do not forget to merge up PHP-X.Y all the way to master. When resolving
305-
the conflicts, ignore the changes from PHP-X.Y in higher branches. It
306-
means using something like `git checkout --ours .` when on PHP.X.Y+1 or
307-
master after the merge resulting in the conflicts.
304+
Do not forget to merge up PHP-X.Y all the way to master.
308305
309-
Be sure to set up a merge driver for the NEWS file as described in
306+
```shell
307+
git switch PHP-X.Y+1 # starting from your release branch
308+
git merge PHP-X.Y
309+
# repeat # Merge up all the way
310+
git switch master
311+
git merge PHP-X.Y+n # latest release branch
312+
```
313+
314+
When resolving the conflicts, ignore the changes from PHP-X.Y in higher
315+
branches when on PHP.X.Y+1 or master after the merge resulting in the
316+
conflicts.
317+
318+
```shell
319+
git checkout --ours main/php_version.h Zend/zend.h configure.ac
320+
git add main/php_version.h Zend/zend.h configure.ac
321+
git merge --continue
322+
```
323+
324+
Be sure to set up a merge driver for the `NEWS` file as described in
310325
the [Git FAQ page on the PHP wiki][gitfaq-mandatory].
311326
312327
11. Push the changes to the `php-src`.

0 commit comments

Comments
 (0)