Skip to content

Commit a1226bc

Browse files
committed
doc: how to update a subtree
1 parent 919e6d0 commit a1226bc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/developer-notes.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,19 @@ to check a subtree directory for consistency with its upstream repository.
11191119

11201120
The tool instructions also include a list of the subtrees managed by Bitcoin Core.
11211121

1122+
To fully verify or update a subtree, add it as a remote:
1123+
1124+
```sh
1125+
git remote add libmultiprocess https://github.com/bitcoin-core/libmultiprocess.git
1126+
```
1127+
1128+
To update the subtree:
1129+
1130+
```sh
1131+
git fetch libmultiprocess
1132+
git subtree pull --prefix=src/ipc/libmultiprocess libmultiprocess master --squash
1133+
```
1134+
11221135
The ultimate upstream of the few externally managed subtrees are:
11231136

11241137
- src/leveldb

0 commit comments

Comments
 (0)