We have instructions on how to verify a subtree update, but not on how to perform one.
doc: how to update a subtree #33568
pull Sjors wants to merge 1 commits into bitcoin:master from Sjors:2025/10/subtree-doc changing 1 files +13 −0-
Sjors commented at 3:18 PM on October 7, 2025: member
- DrahtBot added the label Docs on Oct 7, 2025
-
DrahtBot commented at 3:18 PM on October 7, 2025: contributor
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--006a51241073e994b41acfe9ec718e94-->
Code Coverage & Benchmarks
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/33568.
<!--021abf342d371248e50ceaed478a90ca-->
Reviews
See the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
- Sjors force-pushed on Oct 7, 2025
-
in doc/developer-notes.md:1125 in da373a20a1 outdated
1118 | @@ -1119,6 +1119,12 @@ to check a subtree directory for consistency with its upstream repository. 1119 | 1120 | The tool instructions also include a list of the subtrees managed by Bitcoin Core. 1121 | 1122 | +To update a subtree, follow the instructions for adding it as a remote and then: 1123 | + 1124 | +```sh 1125 | +git subtree pull --prefix=src/ipc/libmultiprocess libmultiprocess master --squash
furszy commented at 3:58 PM on October 7, 2025:Need to add the remote first. E.g.
git remote add libmultiprocess <repo_URL> git subtree pull --prefix=src/ipc/libmultiprocess libmultiprocess master --squash
Sjors commented at 4:14 PM on October 7, 2025:That's explained in the linter doc that's linked right above, but I can duplicate it if needed.
fjahr commented at 5:44 PM on October 7, 2025:Might be good to duplicate for the avoidance of doubt.
Sjors commented at 6:14 PM on October 7, 2025:Done
achow101 commented at 10:17 PM on October 8, 2025:It's actually not necessary to add it as a remote. You can give the repo url directly and it will fetch as needed. This avoids adding a bunch of unnecessary refs to your repo.
Sjors commented at 7:45 AM on October 9, 2025:We also recommend this for the verification process and I find it much more convenient than looking up the full URL. I haven't run out of refs :-)
Sjors force-pushed on Oct 7, 2025in doc/developer-notes.md:1125 in 3a2f50a75b
1118 | @@ -1119,6 +1119,19 @@ to check a subtree directory for consistency with its upstream repository. 1119 | 1120 | The tool instructions also include a list of the subtrees managed by Bitcoin Core. 1121 | 1122 | +To fully verify or update a subtree, add it as a remote: 1123 | + 1124 | +```sh 1125 | +git remote add --fetch libmultiprocess https://github.com/bitcoin-core/libmultiprocess.git
furszy commented at 7:25 PM on October 7, 2025:No need to add the
--fetchoption. You added agit fetchbelow.
Sjors commented at 6:38 AM on October 8, 2025:You only need to add it as a remote once, but each subsequent update requires a fetch. I'll drop
--fetchfrom the first command though.
furszy commented at 1:36 PM on October 8, 2025:yeah, that's what I meant.
furszy commented at 7:26 PM on October 7, 2025: memberConcept ACK
doc: how to update a subtree a1226bc760Sjors force-pushed on Oct 8, 2025yuvicc commented at 7:45 AM on October 8, 2025: contributorACK a1226bc760c70a22ef4a197d5690aca4d83cb74c
This will be useful for new devs while verifying the subtree.
DrahtBot requested review from furszy on Oct 8, 2025in doc/developer-notes.md:1122 in a1226bc760
1118 | @@ -1119,6 +1119,19 @@ to check a subtree directory for consistency with its upstream repository. 1119 | 1120 | The tool instructions also include a list of the subtrees managed by Bitcoin Core. 1121 | 1122 | +To fully verify or update a subtree, add it as a remote:
janb84 commented at 9:28 AM on October 8, 2025:### Updating subtrees To fully verify or update a subtree, add it as a remote:NIT add a sub heading to better indicate it's a subsection. This will help the reader in finding the section and it will nicely bind the section together.
Sjors commented at 9:59 AM on October 8, 2025:But then I have to move the text below this too, or add even more paragraphs. So going to leave it as is for now.
janb84 commented at 9:36 AM on October 8, 2025: contributorACK a1226bc760c70a22ef4a197d5690aca4d83cb74c
This pr adds a section to subtrees. This section describes how to verify or update a subtree ( commands etc). Adding of this section will help new contributors do a subtrees update without spending time to search how to do this.
Added small NIT to add a subsection header, to better subdivide the section. Feel free to ignore.
furszy commented at 1:36 PM on October 8, 2025: memberACK a1226bc760c70a22ef4a197d5690aca4d83cb74c
fjahr commented at 3:15 PM on October 9, 2025: contributorACk a1226bc760c70a22ef4a197d5690aca4d83cb74c
achow101 commented at 5:59 PM on October 9, 2025: memberACK a1226bc760c70a22ef4a197d5690aca4d83cb74c
achow101 merged this on Oct 9, 2025achow101 closed this on Oct 9, 2025sedited referenced this in commit f50d90fcbb on Oct 29, 2025stickies-v referenced this in commit a785fe6759 on Nov 5, 2025stringintech referenced this in commit b82132c4d1 on Nov 6, 2025yuvicc referenced this in commit f620a2206b on Nov 16, 2025Kino1994 referenced this in commit a085993f0a on Jun 28, 2026BigcoinBGC referenced this in commit d878ec88b7 on Jun 30, 2026Kino1994 referenced this in commit df0ab345bb on Aug 19, 2026bitcoin locked this on Oct 9, 2026
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-10-20 03:52 UTC
More mirrored repositories can be found on mirror.b10c.me