From 3a2f50a75bef7fdc8d23c72ac53a04fb2dd9791c Mon Sep 17 00:00:00 2001 From: Sjors Provoost Date: Tue, 7 Oct 2025 20:13:52 +0200 Subject: [PATCH] doc: how to update a subtree --- doc/developer-notes.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/developer-notes.md b/doc/developer-notes.md index 220343ab321..45c8cb20596 100644 --- a/doc/developer-notes.md +++ b/doc/developer-notes.md @@ -1119,6 +1119,19 @@ to check a subtree directory for consistency with its upstream repository. The tool instructions also include a list of the subtrees managed by Bitcoin Core. +To fully verify or update a subtree, add it as a remote: + +```sh +git remote add --fetch libmultiprocess https://github.com/bitcoin-core/libmultiprocess.git +``` + +To update the subtree: + +```sh +git fetch libmultiprocess +git subtree pull --prefix=src/ipc/libmultiprocess libmultiprocess master --squash +``` + The ultimate upstream of the few externally managed subtrees are: - src/leveldb