Skip to content

Commit 32c71d5

Browse files
anderskgnprice
authored andcommitted
Rename default branch to ‘main’.
Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 7993f14 commit 32c71d5

18 files changed

+30
-30
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717

1818
[open-issues]: https://github.com/zulip/zulip-mobile/issues
1919
[commit-style]: https://zulip.readthedocs.io/en/latest/contributing/version-control.html
20-
[style-guide]: https://github.com/zulip/zulip-mobile/blob/master/docs/style.md
20+
[style-guide]: https://github.com/zulip/zulip-mobile/blob/main/docs/style.md

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![CI](https://github.com/zulip/zulip-mobile/actions/workflows/ci.yml/badge.svg)](https://github.com/zulip/zulip-mobile/actions/workflows/ci.yml?query=branch%3Amain)
44
[![Zulip chat](https://img.shields.io/badge/zulip-join_chat-brightgreen.svg)](https://chat.zulip.org/#narrow/stream/mobile)
5-
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/zulip/zulip-mobile/blob/master/CONTRIBUTING.md)
5+
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/zulip/zulip-mobile/blob/main/CONTRIBUTING.md)
66

77
Zulip Mobile is the official mobile Zulip client, supporting both iOS
88
and Android.

android/app/src/main/java/com/zulipmobile/TextCompressionModule.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import java.util.zip.Inflater;
1616

1717
// TODO: Write unit tests; see
18-
// https://github.com/zulip/zulip-mobile/blob/master/docs/howto/testing.md#unit-tests-android.
18+
// https://github.com/zulip/zulip-mobile/blob/main/docs/howto/testing.md#unit-tests-android.
1919
class TextCompressionModule extends ReactContextBaseJavaModule {
2020
public TextCompressionModule(ReactApplicationContext reactContext) {
2121
super(reactContext);

docs/architecture/our-rn.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ The workflow within that repo is:
1515
by other people in PRs to React Native.) For example, `0.55.4-zulip` is a
1616
branch on top of `v0.55.4`, which is the tag for the 0.55.4 release.
1717

18-
* Each of these branches works a lot like the `master` branch in this
18+
* Each of these branches works a lot like the `main` branch in this
1919
zulip/zulip-mobile repo or in the zulip/zulip repo. The branch is a
2020
linear sequence of commits, with no merges; and it advances only by adding
2121
new commits, never by rebasing or rewinding.
2222

2323
* Contributing to one of these branches works just like contributing to
24-
`master` in this zulip/zulip-mobile repo; prepare a branch in your own
24+
`main` in this zulip/zulip-mobile repo; prepare a branch in your own
2525
GitHub fork, and send a PR.

docs/changelog.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ experience.
796796

797797
### Highlights for developers
798798

799-
This is a regular release from the master branch following 26.18.141.
799+
This is a regular release from the main branch following 26.18.141.
800800
In addition to the changes mentioned here, it includes the changes
801801
that were cherry-picked for 26.19.142.
802802

docs/howto/editor.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Take a look through some of VS Code's docs. In particular:
6868
#### Confirm our workspace settings took effect
6969

7070
For the extensions to work properly, make sure that VS Code has recognized
71-
[our settings file](https://github.com/zulip/zulip-mobile/tree/master/.vscode/settings.json)
71+
[our settings file](https://github.com/zulip/zulip-mobile/tree/main/.vscode/settings.json)
7272
in the zulip-mobile repository. Usually, this should happen automatically
7373
when you open the `zulip-mobile` folder in VS Code.
7474

docs/howto/git.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ Use some of `git log`'s many features to filter down to commits you
8484
care about. For example:
8585

8686
* Filter to a range of commits with `git log A..B`. E.g., to reread your
87-
current branch relative to upstream master, you might say
88-
`git log --stat -p upstream/master..`, or `git log --stat -p @{u}..`.
87+
current branch relative to upstream main, you might say
88+
`git log --stat -p upstream/main..`, or `git log --stat -p @{u}..`.
8989
(Greg has the latter aliased as `git usp`, and types it constantly.)
9090

9191
* Filter to changes touching certain files or directories:
@@ -109,8 +109,8 @@ care about. For example:
109109

110110
Try all those `git log` filtering features in your graphical client -- it
111111
may even support the very same command-line options to do it. For
112-
example, `gitk upstream/master..` shows basically the same information as
113-
`git log --stat -p upstream/master..`, but graphically.
112+
example, `gitk upstream/main..` shows basically the same information as
113+
`git log --stat -p upstream/main..`, but graphically.
114114

115115

116116
### 5. Git a summary, with `git log --oneline`

docs/howto/ios-tips.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ the insecure `http://`, you'll need to tell the app to make an
142142
exception under iOS's "App Transport Security" (ATS), either to allow
143143
access any host with `http://`, or just to specific domains.
144144

145-
These exceptions should never be committed to master, as there aren't
145+
These exceptions should never be committed to main, as there aren't
146146
any insecure domains we want to connect to in production.
147147

148148
To disable ATS restrictions for all network connections, add the

docs/howto/profiling.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,12 @@ git remote add greg [email protected]:gnprice/zulip-mobile
158158
git fetch greg dev-perf-monitor
159159
```
160160

161-
[demo branch]: https://github.com/zulip/zulip-mobile/compare/master...gnprice:dev-perf-monitor
161+
[demo branch]: https://github.com/zulip/zulip-mobile/compare/main...gnprice:dev-perf-monitor
162162

163163
Then probably rebase it to whatever you were working on; and rerun
164164
`yarn`:
165165
```
166-
git cherry-pick upstream/master..greg/dev-perf-monitor
166+
git cherry-pick upstream/main..greg/dev-perf-monitor
167167
yarn
168168
```
169169

docs/howto/push-notifications.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ on that is
240240
Now, restart the server, and you should be receiving notifications on
241241
your iOS development build! Be sure mobile notification settings are
242242
on, using the web app's settings interface. (You're all set to do this
243-
if your branch is up-to-date with a version of `master` from 2020-03
243+
if your branch is up-to-date with a version of `main` from 2020-03
244244
or later; if not, you'll need the changes in [this
245245
commit](https://github.com/zulip/zulip/commit/23ba2b63c5c10f43b02a2bb2c470cc6ff597d839)).
246246
If it's not working, please say so in
@@ -293,7 +293,7 @@ More specifically, the rule appears to be:
293293
alpha and/or beta releases, but the build number must strictly
294294
increase.
295295

296-
So if the last version in master is already in the App Store (and not
296+
So if the last version in main is already in the App Store (and not
297297
still in alpha or beta), then we'll want to:
298298

299299
* Increment the user-facing version number.

docs/howto/release.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ simple terminology for the process we follow with both.
153153
* Remember to switch back to a branch without the Sentry client key:
154154

155155
```
156-
git checkout master
156+
git checkout main
157157
```
158158

159159
[play-internal-testing]: https://play.google.com/console/developers/8060868091387311598/app/4976350040864490411/tracks/internal-testing
@@ -237,7 +237,7 @@ simple terminology for the process we follow with both.
237237
* Remember to switch back to a branch without the Sentry client key:
238238

239239
```
240-
git checkout master
240+
git checkout main
241241
```
242242

243243
[app-store-connect]: https://appstoreconnect.apple.com/
@@ -466,7 +466,7 @@ vulnerable.
466466
* Wait for the release to be approved for TestFlight. (On failure, try to
467467
fix, then resubmit.)
468468

469-
* Push the tagged commit, and also push the corresponding changes to master.
469+
* Push the tagged commit, and also push the corresponding changes to main.
470470

471471
* Upload the APK to GitHub as usual.
472472

@@ -530,7 +530,7 @@ script Sentry supplies.)
530530
```
531531
$ git checkout -b release-secrets
532532
$ git commit -am 'SECRET: Add Sentry client key.'
533-
$ git checkout master
533+
$ git checkout main
534534
```
535535

536536
Then, as described in the main release steps above, when making a

src/actionTypes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export type MessageFetchStartAction = {|
204204
* that world, so, we take care to catch those errors and dispatch
205205
* this action there too. See discussion [2] for implementation notes.
206206
*
207-
* [1] https://github.com/zulip/zulip-mobile/blob/master/docs/architecture/crunchy-shell.md
207+
* [1] https://github.com/zulip/zulip-mobile/blob/main/docs/architecture/crunchy-shell.md
208208
* [2] https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/.23M4156.20Message.20List.20placeholders/near/937480
209209
*/
210210
type MessageFetchErrorAction = {|

src/boot/store.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ function listMiddleware() {
381381
// See upstream docs:
382382
// https://github.com/LogRocket/redux-logger
383383
// and ours:
384-
// https://github.com/zulip/zulip-mobile/blob/master/docs/howto/debugging.md#redux-logger
384+
// https://github.com/zulip/zulip-mobile/blob/main/docs/howto/debugging.md#redux-logger
385385
createLogger({
386386
duration: true,
387387
// Example options to add for more focused information, depending on

src/message/fetchActions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ export async function tryFetch<T>(
414414
* updates, calling its `/register` endpoint and starting an async loop to
415415
* poll for events. For background on the Zulip event system and how we use
416416
* it, see docs from the client-side perspective:
417-
* https://github.com/zulip/zulip-mobile/blob/master/docs/architecture/realtime.md
417+
* https://github.com/zulip/zulip-mobile/blob/main/docs/architecture/realtime.md
418418
* and a mainly server-side perspective:
419419
* https://zulip.readthedocs.io/en/latest/subsystems/events-system.html
420420
*

src/reduxTypes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export type FlagName = $Keys<FlagsState>;
141141
* event system to get a complete snapshot and to maintain it incrementally.
142142
* See `doInitialFetch` for discussion, and see our docs from the
143143
* client-side perspective:
144-
* https://github.com/zulip/zulip-mobile/blob/master/docs/architecture/realtime.md
144+
* https://github.com/zulip/zulip-mobile/blob/main/docs/architecture/realtime.md
145145
* and a mainly server-side perspective:
146146
* https://zulip.readthedocs.io/en/latest/subsystems/events-system.html
147147
* As a result, there are very few types of data we need to go fetch from

tools/bump-version

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ if [ -n "$had_uncommitted" ]; then
5858
echo "Then tag the commit:"
5959
echo " git tag ${tag_name}"
6060
echo "inspect the result, and push:"
61-
echo " git push upstream master ${tag_name}"
61+
echo " git push upstream main ${tag_name}"
6262
} >&2
6363
exit 1
6464
fi
@@ -71,5 +71,5 @@ git tag "${tag_name}"
7171
echo
7272
echo "Committed and tagged."
7373
echo "Inspect the result, then push; for example:"
74-
echo " git push upstream master ${tag_name}"
74+
echo " git push upstream main ${tag_name}"
7575
} >&2

tools/info

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ EOF
1111
}
1212

1313
upstream_ref() {
14-
echo refs/remotes/"$(upstream_remote_name)"/master
14+
echo refs/remotes/"$(upstream_remote_name)"/main
1515
}
1616

1717
base_commit() {
@@ -23,7 +23,7 @@ base_commit() {
2323
# usage: files_changed [TIP [UPSTREAM]]
2424
#
2525
# Lists files that have changed in TIP (default: current worktree)
26-
# relative to UPSTREAM (default: upstream/master or origin/master).
26+
# relative to UPSTREAM (default: upstream/main or origin/main).
2727
#
2828
# Excludes files that no longer exist in TIP.
2929
files_changed() {

tools/tx-sync

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Thanks as always to our kind volunteer translators.
103103
104104
Has a new language made major progress? See docs on updating
105105
the languages offered in the UI:
106-
https://github.com/zulip/zulip-mobile/blob/master/docs/howto/translations.md
106+
https://github.com/zulip/zulip-mobile/blob/main/docs/howto/translations.md
107107
EOF
108108
else
109109
err_echo 'Step 1: ...none.'
@@ -126,7 +126,7 @@ EOF
126126
cat >&2 <<EOF
127127
128128
To finish adding it, see docs:
129-
https://github.com/zulip/zulip-mobile/blob/master/docs/howto/translations.md
129+
https://github.com/zulip/zulip-mobile/blob/main/docs/howto/translations.md
130130
131131
Then rerun this script to complete the rest of the sync.
132132
EOF

0 commit comments

Comments
 (0)