about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2020-04-25 21:06:28 +0200
committerGitHub <noreply@github.com>2020-04-25 21:06:28 +0200
commite39550e45ec16bb23a868a348f05a95ad6df6b1c (patch)
tree736bb4cc27aab91c3126324a282534a67cdbcc87
parenta33d64a4c3ebc11004693b31a4f86da9dfdc47db (diff)
parent451badeddf0c7ea13353bdd3f3fa3cf690bc22d9 (diff)
Rollup merge of #5516 - flip1995:doc_release, r=phansch
Add a note to the beta sections of release.md

changelog: none
-rw-r--r--doc/release.md12
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/release.md b/doc/release.md
index 25ddff4c48c..9d69fa8a7f6 100644
--- a/doc/release.md
+++ b/doc/release.md
@@ -63,6 +63,16 @@ to the beta Rust release. The remerge is then necessary, to make sure that the
 Clippy commit, that was used by the now stable Rust release, persists in the
 tree of the Clippy repository.
 
+To find out if this step is necessary run
+
+```bash
+# Assumes that the local master branch is up-to-date
+$ git fetch upstream
+$ git branch master --contains upstream/beta
+```
+
+If this command outputs `master`, this step is **not** necessary.
+
 ```bash
 # Assuming `HEAD` is the current `master` branch of rust-lang/rust-clippy
 $ git checkout -b backport_remerge
@@ -97,5 +107,5 @@ be updated.
 # Assuming the current directory corresponds to the Clippy repository
 $ git checkout beta
 $ git rebase $BETA_SHA
-$ git push upstream beta [-f]   # This requires a force push, if a remerge was done
+$ git push upstream beta
 ```