Skip to content

Commit ef92ea1

Browse files
authored
Merge pull request #2639 from rust-lang/tshepang/default-branch
update mentions of default branch of rust-lang/rust
2 parents bf17e7a + 40a9a27 commit ef92ea1

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

src/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ We have [a chapter](git.md) on how to use Git when contributing to Rust.
153153

154154
### Keeping your branch up-to-date
155155

156-
The CI in rust-lang/rust applies your patches directly against the current `main`,
156+
The CI in rust-lang/rust applies your patches directly against current `main`,
157157
not against the commit your branch is based on.
158158
This can lead to unexpected failures
159159
if your branch is outdated, even when there are no explicit merge conflicts.

src/conventions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ individually using `./x fmt`.
165165

166166
**No merges.** We do not allow merge commits into our history, other
167167
than those by bors. If you get a merge conflict, rebase instead via a
168-
command like `git rebase -i rust-lang/master` (presuming you use the
168+
command like `git rebase --interactive rust-lang/main` (presuming you use the
169169
name `rust-lang` for your remote).
170170

171171
**Individual commits do not have to build (but it's nice).** We do not

src/external-repos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ A `subtree pull` takes all changes since the last `subtree pull`
114114
from the tool repo and adds these commits to the rustc repo along with a merge commit that moves
115115
the tool changes into the specified directory in the Rust repository.
116116
117-
It is recommended that you always do a push first and get that merged to the tool `main`/`master` branch.
117+
It is recommended that you always do a push first and get that merged to the default branch of the tool.
118118
Then, when you do a pull, the merge works without conflicts.
119119
While it's definitely possible to resolve conflicts during a pull, you may have to redo the conflict
120120
resolution if your PR doesn't get merged fast enough and there are new conflicts. Do not try to

src/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ You can find the list of such PRs [here][abandoned-prs].
140140
If the PR has been implemented in some other way in the meantime, the `S-inactive` label
141141
should be removed from it.
142142
If not, and it seems that there is still interest in the change,
143-
you can try to rebase the pull request on top of the latest `master` branch and send a new
143+
you can try to rebase the pull request on top of the latest `main` branch and send a new
144144
pull request, continuing the work on the feature.
145145

146146
[abandoned-prs]: https://github.com/rust-lang/rust/pulls?q=is%3Apr+label%3AS-inactive+is%3Aclosed

src/git.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ upstream/main`. The fix is to abort the rebase and use the correct branch instea
227227

228228
```console
229229
git rebase --abort
230-
git rebase -i upstream/main
230+
git rebase --interactive upstream/main
231231
```
232232

233233
<details><summary>Click here to see an example of rebasing over the wrong branch</summary>
@@ -388,7 +388,7 @@ Alternatively, you can sacrifice the commit history like this:
388388

389389
```console
390390
# squash all the changes into one commit so you only have to worry about conflicts once
391-
git rebase -i --keep-base main # and squash all changes along the way
391+
git rebase --interactive --keep-base main # and squash all changes along the way
392392
git rebase main
393393
# fix all merge conflicts
394394
git rebase --continue

src/rustdoc-internals/rustdoc-gui-test-suite.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ These use a NodeJS-based tool called [`browser-UI-test`] that uses [puppeteer] t
1111
[`browser-UI-test`]: https://github.com/GuillaumeGomez/browser-UI-test/
1212
[puppeteer]: https://pptr.dev/
1313
[rustdoc-gui-readme]: https://github.com/rust-lang/rust/blob/HEAD/tests/rustdoc-gui/README.md
14-
[goml-script]: https://github.com/GuillaumeGomez/browser-UI-test/blob/master/goml-script.md
14+
[goml-script]: https://github.com/GuillaumeGomez/browser-UI-test/blob/main/goml-script.md

0 commit comments

Comments
 (0)