Skip to content

Commit ddc9c4d

Browse files
committed
[ci skip] Make the upward merge for non-stable packaging more obvious
The notice to merge upward is easy to miss when pushing the other branches and the RC tag. Call attention to it with code blocks, and move the note on resolving merge conflicts from an upward merge into a note. Perhaps the upward merge merits its own step and thus a renumbering?
1 parent 1bf85d0 commit ddc9c4d

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

docs/release-process.md

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,33 @@ slightly different steps. We'll call attention where the steps differ.
306306
>
307307
> Local-only release branches should not be pushed!
308308
309-
Do not forget to merge up PHP-X.Y all the way to master. When resolving
310-
the conflicts, ignore the changes from PHP-X.Y in higher branches. It
311-
means using something like `git checkout --ours .` when on PHP.X.Y+1 or
312-
master after the merge resulting in the conflicts.
309+
Do not forget to merge up PHP-X.Y all the way to master, including any
310+
intermediate version branches.
311+
312+
```shell
313+
# No intermediate version, merge directly to master
314+
git checkout master
315+
git merge PHP-X.Y
316+
```
317+
318+
```shell
319+
# One intermediate version, merge upward into master
320+
git checkout PHP-X.Y+1
321+
git merge PHP-X.Y
322+
git checkout master
323+
git merge PHP-X.Y+1
324+
```
325+
326+
> 🗒 **Note** \
327+
> When resolving the conflicts, ignore the changes from PHP-X.Y in higher
328+
> branches. It means using something like `git checkout --ours .` when on
329+
> PHP.X.Y+1 or master after the merge resulting in the conflicts.
330+
331+
> ```shell
332+
> git checkout --ours .
333+
> git add -p
334+
> git commit
335+
> ```
313336
314337
11. Run the following using the release tag to export the tree, create the
315338
`configure` script, and build and compress three tarballs (`.tar.gz`,

0 commit comments

Comments
 (0)