externals: Document subtrees

This commit is contained in:
MerryMage 2018-08-15 13:28:13 +01:00
parent 7ef7def661
commit 627159b9f2

19
externals/README.md vendored Normal file
View file

@ -0,0 +1,19 @@
This repository uses subtrees to manage some of its externals.
## Initial setup
```
git remote add externals-fmt https://github.com/fmtlib/fmt.git
git remote add externals-xbyak https://github.com/herumi/xbyak.git
```
## Updating
Change `<ref>` to refer to the appropriate git reference.
```
git fetch externals-fmt
git fetch externals-xbyak
git subtree pull --squash --prefix=externals/fmt externals-fmt <ref>
git subtree pull --squash --prefix=externals/xbyak externals-xbyak <ref>
```