Skip to content

Commit 429e0f4

Browse files
lpincatargos
authored andcommitted
doc: update main branch name in doc/contributing/*
Refs: #33864 PR-URL: #43438 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Danielle Adams <adamzdanielle@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent cbaf120 commit 429e0f4

11 files changed

Lines changed: 47 additions & 47 deletions

doc/contributing/backporting-to-release-lines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ For the active staging branches see the [Release Schedule][].
1010

1111
## What needs to be backported?
1212

13-
If a cherry-pick from master does not land cleanly on a staging branch, the
13+
If a cherry-pick from `main` does not land cleanly on a staging branch, the
1414
releaser will mark the pull request with a particular label for that release
1515
line (e.g. `backport-requested-vN.x`), specifying to our tooling that this
1616
pull request should not be included. The releaser will then add a comment

doc/contributing/collaborator-guide.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,11 @@ in the form:
287287

288288
* `GIT_REMOTE_REF`: Change to the remote portion of git refspec.
289289
To specify the branch this way, `refs/heads/BRANCH` is used
290-
(e.g. for `master` -> `refs/heads/master`).
290+
(e.g. for `main` -> `refs/heads/main`).
291291
For pull requests, it will look like `refs/pull/PR_NUMBER/head`
292292
(e.g. for pull request #42 -> `refs/pull/42/head`).
293-
* `REBASE_ONTO`: Change that to `origin/master` so the pull request gets rebased
294-
onto master. This can especially be important for pull requests that have been
293+
* `REBASE_ONTO`: Change that to `origin/main` so the pull request gets rebased
294+
onto `main`. This can especially be important for pull requests that have been
295295
open a while.
296296

297297
Look at the list of jobs on the left hand side under "Build History" and copy
@@ -337,7 +337,7 @@ For undocumented APIs that are public, open a pull request documenting the API.
337337
### Breaking changes
338338

339339
At least two TSC members must approve backward-incompatible changes to the
340-
master branch.
340+
`main` branch.
341341

342342
Examples of breaking changes include:
343343

@@ -373,7 +373,7 @@ providing a Public API in such cases.
373373
#### Unintended breaking changes
374374

375375
Sometimes, a change intended to be non-breaking turns out to be a breaking
376-
change. If such a change lands on the master branch, a collaborator can revert
376+
change. If such a change lands on the `main` branch, a collaborator can revert
377377
it. As an alternative to reverting, the TSC can apply the semver-major label
378378
after-the-fact.
379379

@@ -462,7 +462,7 @@ duration.
462462

463463
Communicate pending deprecations and associated mitigations with the ecosystem
464464
as soon as possible. If possible, do it before the pull request adding the
465-
deprecation lands on the master branch.
465+
deprecation lands on the `main` branch.
466466

467467
Use the `notable-change` label on pull requests that add or change the
468468
deprecation level of an API.
@@ -554,15 +554,15 @@ $ git rebase --abort
554554
Checkout proper target branch:
555555

556556
```text
557-
$ git checkout master
557+
$ git checkout main
558558
```
559559

560560
Update the tree (assumes your repository is set up as detailed in
561561
[CONTRIBUTING.md](./pull-requests.md#step-1-fork)):
562562

563563
```text
564564
$ git fetch upstream
565-
$ git merge --ff-only upstream/master