Skip to content

Commit 95e42b9

Browse files
authored
Rename master to main. (dotnet#8851)
* Fix links that point to master to point to main instead. * Implement support in the sample tester for specifying the default branch for each sample repo. * Fix various text / documentation to say 'main' instead of 'master.' * Push to 'main' instead of 'master' in xamarin-macios-data. * Fix xharness to make 'main' the special branch with regards to documentation tests as opposed to 'master'. * Fix various CI to use 'main' instead of 'master'. * Bump maccore New commits in xamarin/maccore: * xamarin/maccore@ed6d146822 Rename 'master' to 'main'. (dotnet#2233) Diff: https://github.com/xamarin/maccore/compare/424fa2614873c7415cf0407d2389335cba0b6c79..ed6d1468221f2220cd3f39294427160f0d3fbced
1 parent f236e2f commit 95e42b9

File tree

25 files changed

+84
-60
lines changed

25 files changed

+84
-60
lines changed

Make.versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# WATCHOS_NUGET_VERSION (major/minor/patch #)
1010
# MACOS_NUGET_VERSION (major/minor/patch #)
1111
#
12-
# Update version numbers on master as well, to the next version
12+
# Update version numbers on main as well, to the next version
1313
#
1414

1515
#

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This repository is where we do development for the Xamarin.iOS and Xamarin.Mac S
1919
If you are interested in fixing issues and contributing directly to the code base, please see the document [How to Contribute](https://github.com/xamarin/xamarin-macios/wiki/How-to-Contribute), which covers the following:
2020

2121
- How to [build and run](https://github.com/xamarin/xamarin-macios/wiki/Build-&-Run) from source
22-
- The [development workflow](https://github.com/xamarin/xamarin-macios/wiki/How-to-Contribute#work-branches), including [debugging](https://github.com/xamarin/xamarin-macios/wiki/Build-&-Run#debugging-applications-from-source) and [running tests](https://github.com/xamarin/xamarin-macios/blob/master/tests/README.md)
22+
- The [development workflow](https://github.com/xamarin/xamarin-macios/wiki/How-to-Contribute#work-branches), including [debugging](https://github.com/xamarin/xamarin-macios/wiki/Build-&-Run#debugging-applications-from-source) and [running tests](https://github.com/xamarin/xamarin-macios/blob/main/tests/README.md)
2323
- [Coding Guidelines](https://github.com/xamarin/xamarin-macios/wiki/How-to-Contribute#coding-guidelines)
2424
- [Submitting pull requests](https://github.com/xamarin/xamarin-macios/wiki/How-to-Contribute#pull-requests)
2525

@@ -61,4 +61,4 @@ However, we provide links to older Xamarin.iOS and Mac packages for macOS downgr
6161
## License
6262

6363
Copyright (c) .NET Foundation Contributors. All rights reserved.
64-
Licensed under the [MIT](https://github.com/xamarin/xamarin-macios/blob/master/LICENSE) License.
64+
Licensed under the [MIT](https://github.com/xamarin/xamarin-macios/blob/main/LICENSE) License.

docs/website/binding_objc_libs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Mac bindings are very similar.
3434
**Sample Code for iOS**
3535

3636
You can use the
37-
[iOS Binding Sample](https://github.com/xamarin/monotouch-samples/tree/master/BindingSample)
37+
[iOS Binding Sample](https://github.com/xamarin/monotouch-samples/tree/main/BindingSample)
3838
project to experiment with bindings.
3939

4040
<a name="Getting_Started" />

docs/website/binding_types_reference_guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2062,7 +2062,7 @@ If the value of `doAdd` is true, then the parameter is added to the
20622062
`listName`. You must declare this backing field in your complementary partial
20632063
class to the API.
20642064

2065-
For an example see [foundation.cs](https://github.com/mono/maccore/blob/master/src/foundation.cs) and [NSNotificationCenter.cs](https://github.com/mono/maccore/blob/master/src/Foundation/NSNotificationCenter.cs)
2065+
For an example see [foundation.cs](https://github.com/mono/maccore/blob/main/src/foundation.cs) and [NSNotificationCenter.cs](https://github.com/mono/maccore/blob/main/src/Foundation/NSNotificationCenter.cs)
20662066
20672067

20682068
### TransientAttribute
@@ -2288,7 +2288,7 @@ public class LinkWithAttribute : Attribute {
22882288
```
22892289

22902290
This attribute is applied at the assembly level, for example, this is what
2291-
the [CorePlot bindings](https://github.com/mono/monotouch-bindings/tree/master/CorePlot) use:
2291+
the [CorePlot bindings](https://github.com/mono/monotouch-bindings/tree/main/CorePlot) use:
22922292
22932293
```csharp
22942294
[assembly: LinkWith ("libCorePlot-CocoaTouch.a", LinkTarget.ArmV7 | LinkTarget.ArmV7s | LinkTarget.Simulator, Frameworks = "CoreGraphics QuartzCore", ForceLoad = true)]

docs/website/generator-errors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ title: "Xamarin.iOS/Xamarin.Mac binding errors"
44
dateupdated: 2017-06-26
55
---
66

7-
[//]: # (The original file resides under https://github.com/xamarin/xamarin-macios/tree/master/docs/website/)
7+
[//]: # (The original file resides under https://github.com/xamarin/xamarin-macios/tree/main/docs/website/)
88
[//]: # (This allows all contributors (including external) to submit, using a PR, updates to the documentation that match the tools changes)
9-
[//]: # (Modifications outside of xamarin-macios/master will be lost on future updates)
9+
[//]: # (Modifications outside of xamarin-macios/main will be lost on future updates)
1010

1111
# BI0xxx: binding error messages
1212

docs/website/mtouch-errors.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ E.g. parameters, environment, missing tools.
1717

1818
<!--
1919
MT0xxx mtouch itself, e.g. parameters, environment (e.g. missing tools)
20-
https://github.com/xamarin/xamarin-macios/blob/master/tools/mtouch/error.cs
20+
https://github.com/xamarin/xamarin-macios/blob/main/tools/mtouch/error.cs
2121
-->
2222

2323
<a name="MT0000" />
@@ -676,7 +676,7 @@ For further information see bug #[51634](https://bugzilla.xamarin.com/show_bug.c
676676

677677
### MT0112: Native code sharing has been disabled because *
678678

679-
There are multiple reasons [native code sharing](https://github.com/xamarin/xamarin-macios/blob/master/docs/code-sharing-with-user-frameworks.md) can be disabled:
679+
There are multiple reasons [native code sharing](https://github.com/xamarin/xamarin-macios/blob/main/docs/code-sharing-with-user-frameworks.md) can be disabled:
680680

681681
* because the container app's deployment target is earlier than iOS 8.0 (it's *)).
682682

@@ -694,7 +694,7 @@ Native code sharing requires is not supported for projects that use custom xml d
694694

695695
### MT0113: Native code sharing has been disabled for the extension '*' because *.
696696

697-
There are multiple reasons [native code sharing](https://github.com/xamarin/xamarin-macios/blob/master/docs/code-sharing-with-user-frameworks.md) can be disabled:
697+
There are multiple reasons [native code sharing](https://github.com/xamarin/xamarin-macios/blob/main/docs/code-sharing-with-user-frameworks.md) can be disabled:
698698

699699
* because the bitcode options differ between the container app (\*) and the extension (\*).
700700

docs/website/optimizations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,4 +775,4 @@ The default behavior can be overridden by passing
775775
`--optimize=[+|-]force-rejected-types-removal` to `mtouch`.
776776

777777
The exact list of types might change over time and is best read directly from
778-
the [source code](https://github.com/xamarin/xamarin-macios/blob/master/tools/linker/RemoveRejectedTypesStep.cs).
778+
the [source code](https://github.com/xamarin/xamarin-macios/blob/main/tools/linker/RemoveRejectedTypesStep.cs).

docs/website/xamarin-analysis-doc-tool/xamarin-analysis-doc.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ static void GenerateAnalysisDoc (string path)
3434
section += "title: Xamarin.iOS Analysis Rules\n";
3535
section += "dateupdated: " + DateTime.Now.ToString("yyyy-MM-dd") + "\n";
3636
section += "---\n\n";
37-
section += "[//]: # (The original file resides under https://github.com/xamarin/xamarin-macios/tree/master/docs/website/)\n";
37+
section += "[//]: # (The original file resides under https://github.com/xamarin/xamarin-macios/tree/main/docs/website/)\n";
3838
section += "[//]: # (This allows all contributors (including external) to submit, using a PR, updates to the documentation that match the tools changes)\n";
39-
section += "[//]: # (Modifications outside of xamarin-macios/master will be lost on future updates)\n\n";
39+
section += "[//]: # (Modifications outside of xamarin-macios/main will be lost on future updates)\n\n";
4040
section += "Xamarin.iOS analysis is a set of rules that check your project settings to help you determine if better/more optimized settings are available.\n\n";
4141
section += "Run the analysis rules as often as possible to find possible improvements early on and save development time.\n\n";
4242
section += "To run the rules, in Visual Studio for Mac's menu, select **Project > Run Code Analysis**.\n\n";

dotnet/VERSIONS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This is the scheme: `OsMajor.OsMinor.InternalRelease[-prereleaseX]+sha.1b2c3d4`.
1818
* For CI we use a `ci` prefix + the branch name (cleaned up to only be
1919
alphanumeric) + the commit distance (number of commits since any of the
2020
major.minor.patch versions changed).
21-
* Example: `iOS 15.0.100-ci.master.1234`
21+
* Example: `iOS 15.0.100-ci.main.1234`
2222
* Alphanumeric means `a-zA-Z0-9-`: any character not in this range
2323
will be replaced with a `-`.
2424
* Pull requests have `pr` prefix, followed by `gh`+ PR number + commit
@@ -38,7 +38,7 @@ This is the scheme: `OsMajor.OsMinor.InternalRelease[-prereleaseX]+sha.1b2c3d4`.
3838
cumbersome. This leaves the complete version open for duplication,
3939
but this is extremely unlikely.
4040
* Example: `iOS 14.0.100+sha.1a2b3c`
41-
* Example (CI build): `iOS 15.0.100-ci.master.1234+sha.1a2b3c`
41+
* Example (CI build): `iOS 15.0.100-ci.main.1234+sha.1a2b3c`
4242
* Since the build metadata is required for all builds, we're able to
4343
recognize incomplete version numbers and determine if a particular
4444
version string refers to a stable version or not.

jenkins/custom-labels.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
# Each label must go on a separate line.
33
# Lines starting with a hash are comments.
44
#
5-
# ⚠️ Important: Do not merge this file into master (or any other release branch) if it has any labels in it ⚠️
5+
# ⚠️ Important: Do not merge this file into main (or any other release branch) if it has any labels in it ⚠️
66
#
77
# This is used when building in CI to adjust what we build when we're building
88
# a branch (since we can't apply labels to branches), but if any labels are
9-
# merged into master, that adjustment will be permanent, and that's most likely
9+
# merged into main, that adjustment will be permanent, and that's most likely
1010
# not what we want. For this reason, replace any empty comment line with labels,
11-
# so that a merge attempt into master will fail with conflicts.
11+
# so that a merge attempt into main will fail with conflicts.
1212
#
1313
# ℹ️ Remove any empty comment lines with labels ℹ️
1414
#

0 commit comments

Comments
 (0)