aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
Diffstat (limited to 'xtask')
-rw-r--r--xtask/Cargo.toml2
-rw-r--r--xtask/src/codegen/gen_assists_docs.rs4
-rw-r--r--xtask/tests/tidy.rs14
3 files changed, 16 insertions, 4 deletions
diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml
index 96b4ea448..7a2937f0e 100644
--- a/xtask/Cargo.toml
+++ b/xtask/Cargo.toml
@@ -15,7 +15,7 @@ flate2 = "1.0"
15pico-args = "0.3.1" 15pico-args = "0.3.1"
16proc-macro2 = "1.0.8" 16proc-macro2 = "1.0.8"
17quote = "1.0.2" 17quote = "1.0.2"
18ungrammar = "1.5" 18ungrammar = "1.6"
19walkdir = "2.3.1" 19walkdir = "2.3.1"
20write-json = "0.1.0" 20write-json = "0.1.0"
21xshell = "0.1" 21xshell = "0.1"
diff --git a/xtask/src/codegen/gen_assists_docs.rs b/xtask/src/codegen/gen_assists_docs.rs
index be218dea1..6e18a50a6 100644
--- a/xtask/src/codegen/gen_assists_docs.rs
+++ b/xtask/src/codegen/gen_assists_docs.rs
@@ -86,8 +86,8 @@ impl Assist {
86 86
87impl fmt::Display for Assist { 87impl fmt::Display for Assist {
88 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { 88 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
89 let before = self.before.replace("<|>", "┃"); // Unicode pseudo-graphics bar 89 let before = self.before.replace("$0", "┃"); // Unicode pseudo-graphics bar
90 let after = self.after.replace("<|>", "┃"); 90 let after = self.after.replace("$0", "┃");
91 writeln!( 91 writeln!(
92 f, 92 f,
93 "[discrete]\n=== `{}` 93 "[discrete]\n=== `{}`
diff --git a/xtask/tests/tidy.rs b/xtask/tests/tidy.rs
index d1ffb70ad..7e5b1f7b5 100644
--- a/xtask/tests/tidy.rs
+++ b/xtask/tests/tidy.rs
@@ -107,8 +107,13 @@ When updating a pull-request, please rebase your feature branch
107on top of master by running `git rebase master`. If rebase fails, 107on top of master by running `git rebase master`. If rebase fails,
108you can re-apply your changes like this: 108you can re-apply your changes like this:
109 109
110 # Abort in-progress rebase, if any. 110 # Just look around to see the current state.
111 $ git status
112 $ git log
113
114 # Abort in-progress rebase and merges, if any.
111 $ git rebase --abort 115 $ git rebase --abort
116 $ git merge --abort
112 117
113 # Make the branch point to the latest commit from master, 118 # Make the branch point to the latest commit from master,
114 # while maintaining your local changes uncommited. 119 # while maintaining your local changes uncommited.
@@ -117,10 +122,17 @@ you can re-apply your changes like this:
117 # Commit all changes in a single batch. 122 # Commit all changes in a single batch.
118 $ git commit -am'My changes' 123 $ git commit -am'My changes'
119 124
125 # Verify that everything looks alright.
126 $ git status
127 $ git log
128
120 # Push the changes. We did a rebase, so we need `--force` option. 129 # Push the changes. We did a rebase, so we need `--force` option.
121 # `--force-with-lease` is a more safe (Rusty) version of `--force`. 130 # `--force-with-lease` is a more safe (Rusty) version of `--force`.
122 $ git push --force-with-lease 131 $ git push --force-with-lease
123 132
133 # Verify that both local and remote branch point to the same commit.
134 $ git log
135
124And don't fear to mess something up during a rebase -- you can 136And don't fear to mess something up during a rebase -- you can
125always restore the previous state using `git ref-log`: 137always restore the previous state using `git ref-log`:
126 138