diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2021-02-05 22:00:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-05 22:00:56 +0100 |
commit | 8ae477a432f0924cd4bd3bdeaef2c4c15e483a8f (patch) | |
tree | 4295d527be7ee479da4f1a75f5309ee8df32c9e8 | |
parent | 025da4dd343e6734f3d3c1b4785b1548498115d8 (diff) | |
download | jquery-8ae477a432f0924cd4bd3bdeaef2c4c15e483a8f.tar.gz jquery-8ae477a432f0924cd4bd3bdeaef2c4c15e483a8f.zip |
Build: Rename master to main across the repository
The default branch was updated, this updates the remaining occurrences in code
& comments.
Closes gh-4838
-rw-r--r-- | CONTRIBUTING.md | 6 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | build/release/dist.js | 8 | ||||
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | test/unit/offset.js | 6 |
5 files changed, 13 insertions, 13 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2deb7d180..97ab4f66a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -85,16 +85,16 @@ Change directory to the newly created dir jquery/ $ cd jquery ``` -Add the jQuery master as a remote. I label mine "upstream" +Add the jQuery main as a remote. I label mine "upstream" ```bash $ git remote add upstream git://github.com/jquery/jquery.git ``` -Get in the habit of pulling in the "upstream" master to stay up to date as jQuery receives new commits +Get in the habit of pulling in the "upstream" main to stay up to date as jQuery receives new commits ```bash -$ git pull upstream master +$ git pull upstream main ``` Run the build script @@ -216,7 +216,7 @@ As the source code is handled by the Git version control system, it's useful to If you want to purge your working directory back to the status of upstream, the following commands can be used (remember everything you've worked on is gone after these): ```bash -git reset --hard upstream/master +git reset --hard upstream/main git clean -fdx ``` @@ -274,7 +274,7 @@ throws( block, [expected], [message] ); ``` -Test Suite Convenience Methods Reference (See [test/data/testinit.js](https://github.com/jquery/jquery/blob/master/test/data/testinit.js)) +Test Suite Convenience Methods Reference (See [test/data/testinit.js](https://github.com/jquery/jquery/blob/main/test/data/testinit.js)) ------------------------------ ### Returns an array of elements with the given IDs ### diff --git a/build/release/dist.js b/build/release/dist.js index c8f7116bd..ea7c64b8a 100644 --- a/build/release/dist.js +++ b/build/release/dist.js @@ -31,9 +31,9 @@ module.exports = function( Release, files, complete ) { Release.exec( `git clone ${ distRemote } ${ Release.dir.dist }`, "Error cloning repo." ); - // Distribution always works on master + // Distribution always works on main Release.chdir( Release.dir.dist ); - Release.exec( "git checkout master", "Error checking out branch." ); + Release.exec( "git checkout main", "Error checking out branch." ); console.log(); } @@ -140,8 +140,8 @@ module.exports = function( Release, files, complete ) { Release.exec( `git push ${ Release.isTest ? " --dry-run" : "" - } ${ distRemote } master --tags`, - "Error pushing master and tags to git repo." + } ${ distRemote } main --tags`, + "Error pushing main and tags to git repo." ); // Set repo for npm publish diff --git a/package.json b/package.json index 699b1c999..eeac68c93 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "homepage": "https://jquery.com", "author": { "name": "OpenJS Foundation and other contributors", - "url": "https://github.com/jquery/jquery/blob/master/AUTHORS.txt" + "url": "https://github.com/jquery/jquery/blob/main/AUTHORS.txt" }, "repository": { "type": "git", diff --git a/test/unit/offset.js b/test/unit/offset.js index b3d2dd783..82360c874 100644 --- a/test/unit/offset.js +++ b/test/unit/offset.js @@ -63,7 +63,7 @@ QUnit.test( "disconnected element", function( assert ) { var result = jQuery( document.createElement( "div" ) ).offset(); - // These tests are solely for master/compat consistency + // These tests are solely for main/compat consistency // Retrieving offset on disconnected/hidden elements is not officially // valid input, but will return zeros for back-compat assert.equal( result.top, 0, "Retrieving offset on disconnected elements returns zeros (gh-2310)" ); @@ -80,7 +80,7 @@ QUnit.test( "hidden (display: none) element", function( assert ) { node.remove(); - // These tests are solely for master/compat consistency + // These tests are solely for main/compat consistency // Retrieving offset on disconnected/hidden elements is not officially // valid input, but will return zeros for back-compat assert.equal( result.top, 0, "Retrieving offset on hidden elements returns zeros (gh-2310)" ); @@ -454,7 +454,7 @@ testIframe( "scroll", "offset/scroll.html", function( assert, $, win ) { assert.equal( $( "#scroll-1-1" ).offset().top, 11, "jQuery('#scroll-1-1').offset().top" ); assert.equal( $( "#scroll-1-1" ).offset().left, 11, "jQuery('#scroll-1-1').offset().left" ); - // These tests are solely for master/compat consistency + // These tests are solely for main/compat consistency // Retrieving offset on disconnected/hidden elements is not officially // valid input, but will return zeros for back-compat assert.equal( $( "#hidden" ).offset().top, 0, "Hidden elements do not subtract scroll" ); |