Skip to content

Commit c8376e4

Browse files
committed
Add usage of git subtree to readme
1 parent 8c2b14f commit c8376e4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Readme.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Using git-subtree with `rustc` requires a patched git to make it work.
193193
The PR that is needed is [here](https://github.com/gitgitgadget/git/pull/493).
194194
Use the following instructions to install it:
195195
196-
```
196+
```bash
197197
git clone git@github.com:tqc/git.git
198198
cd git
199199
git checkout tqc/subtree
@@ -204,6 +204,12 @@ make
204204
cp git-subtree ~/bin
205205
```
206206

207+
Then, do a sync with this command:
208+
209+
```bash
210+
PATH="$HOME/bin:$PATH" ~/bin/git-subtree push -P compiler/rustc_codegen_gcc/ ../rustc_codegen_gcc/ sync_branch_name
211+
```
212+
207213
### How to use [mem-trace](https://github.com/antoyo/mem-trace)
208214

209215
`rustc` needs to be built without `jemalloc` so that `mem-trace` can overload `malloc` since `jemalloc` is linked statically, so a `LD_PRELOAD`-ed library won't a chance to intercept the calls to `malloc`.

0 commit comments

Comments
 (0)