Skip to content

Commit 1fcf437

Browse files
committed
Add instructions for a working git-subtree
1 parent 7a22c47 commit 1fcf437

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Readme.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,17 @@ TODO(antoyo): but that's not what I remember I was doing.
187187
* Build the stage2 compiler (`rustup toolchain link debug-current build/x86_64-unknown-linux-gnu/stage2`).
188188
* Clean and rebuild the codegen with `debug-current` in the file `rust-toolchain`.
189189
190+
### How to install a forked git-subtree
191+
192+
Using git-subtree with `rustc` requires a patched git to make it work.
193+
The PR that is needed is [here](https://github.com/gitgitgadget/git/pull/493).
194+
Compile it and copy those files to `/usr/local/bin`:
195+
196+
```
197+
git-commit-tree git-ls-tree git-merge-tree git-read-tree git-write-tree
198+
git-diff-tree git-merge-subtree git-mktree git-worktree
199+
```
200+
190201
### How to use [mem-trace](https://github.com/antoyo/mem-trace)
191202
192203
`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)