You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,8 @@ If you need to specify a more complex Josh `filter`, use `filter` field in the c
17
17
18
18
The `init` command will also create an empty `rust-version` file (if it doesn't already exist) that stores the last upstream `rustc` SHA that was synced in the subtree.
19
19
20
+
The [`josh-sync.example.toml`](josh-sync.example.toml) file contains all the things that can be configured.
21
+
20
22
## Performing pull
21
23
22
24
A pull operation fetches changes to the subtree subdirectory that were performed in `rust-lang/rust` and merges them into the subtree repository. After performing a pull, a pull request is sent against the *subtree repository*. We *pull from rustc*.
@@ -25,15 +27,20 @@ A pull operation fetches changes to the subtree subdirectory that were performed
25
27
2) Create a new branch that will be used for the subtree PR, e.g. `pull`
26
28
3) Run `rustc-josh-sync pull`
27
29
4) Send a PR to the subtree repository
28
-
- Note that `rustc-josh-sync` can do this for you if you have the [gh](https://cli.github.com/) CLI tool installed.
30
+
31
+
- Note that `rustc-josh-sync` can do this for you if you have the [gh](https://cli.github.com/) CLI tool installed.
32
+
33
+
You can also configure a set of postprocessing operations to be performed after a successful pull using the `post-pull` configuration.
29
34
30
35
## Performing push
31
36
32
37
A push operation takes changes performed in the subtree repository and merges them into the subtree subdirectory of the `rust-lang/rust` repository. After performing a push, a push request is sent against the *rustc repository*. We *push to rustc*.
33
38
34
39
1) Checkout the latest default branch of the subtree
35
40
2) Run `rustc-josh-sync push <branch> <your-github-username>`
36
-
- The branch with the push contents will be created in `https://github.com/<your-github-username>/rust` fork, in the `<branch>` branch.
41
+
42
+
- The branch with the push contents will be created in `https://github.com/<your-github-username>/rust` fork, in the `<branch>` branch.
0 commit comments