lint: have git-subtree-check warn about backportability #35686

pull Sjors wants to merge 1 commits into bitcoin:master from Sjors:2026/07/subtree-lint changing 3 files +22 −2
  1. Sjors commented at 7:01 PM on July 8, 2026: member

    A subtree update PR is easier to backport when its merge commit is stacked on the previous subtree merge instead of on master.

    Have git-subtree-check.sh warn when the latest subtree merge does not follow that structure. This is not always practical, so it's a warning, not a failure.

    Example without warning:

    test/lint/git-subtree-check.sh src/ipc/libmultiprocess 66b4e30e
    
    Example with warning:
    test/lint/git-subtree-check.sh src/ipc/libmultiprocess 02afa661
    ```sh
    
    The check only runs when the commit (`COMMIT`, or `HEAD`) is the subtree merge itself. Since CI performs a merge with master, it skips this check.
    
  2. lint: have git-subtree-check warn about backportability
    A subtree update PR is easier to backport when its merge commit is
    stacked on the previous subtree merge instead of on master.
    
    Have git-subtree-check.sh warn when the latest subtree merge does not
    follow that structure. This is not always practical, so it's a warning,
    not a failure.
    
    Example without warning:
    test/lint/git-subtree-check.sh src/ipc/libmultiprocess 66b4e30e
    
    Example with warning:
    test/lint/git-subtree-check.sh src/ipc/libmultiprocess 02afa661
    
    The check only runs when the commit (`COMMIT`, or `HEAD`) is the
    subtree merge itself. Since CI performs a merge with master, it skips
    this check.
    4ace058d85
  3. DrahtBot added the label Tests on Jul 8, 2026
  4. DrahtBot commented at 7:01 PM on July 8, 2026: 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/35686.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline and AI policy for information on the review process. A summary of reviews will appear here.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

Contributors
Labels

github-metadata-mirror

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-07-09 06:47 UTC