mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
Book: Improve release documentation
Make it clear for all code blocks in which repository they should be run. Also make sure that the correct beta commit is fetched.
This commit is contained in:
parent
99a731d265
commit
b2660de8ec
1 changed files with 3 additions and 2 deletions
|
@ -28,7 +28,7 @@ tree of the Clippy repository.
|
||||||
To find out if this step is necessary run
|
To find out if this step is necessary run
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Assumes that the local master branch is up-to-date
|
# Assumes that the local master branch of rust-lang/rust-clippy is up-to-date
|
||||||
$ git fetch upstream
|
$ git fetch upstream
|
||||||
$ git branch master --contains upstream/beta
|
$ git branch master --contains upstream/beta
|
||||||
```
|
```
|
||||||
|
@ -56,7 +56,8 @@ determined.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Assuming the current directory corresponds to the Rust repository
|
# Assuming the current directory corresponds to the Rust repository
|
||||||
$ git checkout beta
|
$ git fetch upstream
|
||||||
|
$ git checkout upstream/beta
|
||||||
$ BETA_SHA=$(git log --oneline -- src/tools/clippy/ | grep -o "Merge commit '[a-f0-9]*' into .*" | head -1 | sed -e "s/Merge commit '\([a-f0-9]*\)' into .*/\1/g")
|
$ BETA_SHA=$(git log --oneline -- src/tools/clippy/ | grep -o "Merge commit '[a-f0-9]*' into .*" | head -1 | sed -e "s/Merge commit '\([a-f0-9]*\)' into .*/\1/g")
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue