From 8e0db936a05590c0f3ac557732ade8474bd62380 Mon Sep 17 00:00:00 2001 From: David Chambers Date: Tue, 12 Dec 2023 10:27:14 +0100 Subject: [PATCH] change default `--branch` value from `master` to `main` --- README.md | 4 ++-- xyz | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8752c8e..a06f975 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Several things will happen if one elects to continue: git add package.json git commit --message 'Version 0.6.1' git tag --annotate v0.6.1 --message 'Version 0.6.1' - git push --atomic origin refs/heads/master refs/tags/v0.6.1 + git push --atomic origin refs/heads/main refs/tags/v0.6.1 env VERSION=0.6.1 PREVIOUS_VERSION=0.6.0 bash -c 'npm publish' > [!IMPORTANT] @@ -41,7 +41,7 @@ Several things will happen if one elects to continue: -b --branch Specify the branch from which new versions must be published. xyz aborts if run from any other branch to prevent accidental - publication of feature branches. 'master' is assumed if this + publication of feature branches. 'main' is assumed if this option is omitted. -e --edit diff --git a/xyz b/xyz index 63dfe02..ddfcdcd 100755 --- a/xyz +++ b/xyz @@ -14,7 +14,7 @@ Options: -b --branch Specify the branch from which new versions must be published. xyz aborts if run from any other branch to prevent accidental - publication of feature branches. 'master' is assumed if this + publication of feature branches. 'main' is assumed if this option is omitted. -e --edit @@ -146,7 +146,7 @@ check_bash_version() { check_bash_version declare -A options=( - [branch]=master + [branch]=main [dry-run]=false [edit]=false [increment]=patch