Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1// Copyright (c) The Bitcoin Core developers2// Distributed under the MIT software license, see the accompanying3// file COPYING or https://opensource.org/license/mit/.5use std::process::Command;7use crate::util::{commit_range, get_subtrees, LintResult};9pub fn lint_subtree() -> LintResult {10// This only checks that the trees are pure subtrees, it is not doing a full11// check with -r to not have to fetch all the remotes.12let mut good = true;13for subtree in get_subtrees() {14good &= Command::new("test/lint/git-subtree-check.sh")15.arg(subtree)16.status()17.expect("command_error")18.success();19}20if good {21Ok(())22} else {23Err("".to_string())24}25}27pub fn lint_scripted_diff() -> LintResult {28if Command::new("test/lint/commit-script-check.sh")29.arg(commit_range())30.status()31.expect("command error")32.success()33{34Ok(())35} else {36Err("".to_string())37}38}
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.