mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 05:57:59 +01:00
test: Add option to git-subtree-check to do full check, add help
This adds a brief help text to `git-subtree-check.sh` and adds and an option to do a full remote check instead of having two different code paths with a successful exit status. Also make it explicit that the CI is not doing this.
This commit is contained in:
@@ -15,7 +15,16 @@ git-subtree-check.sh
|
||||
Run this script from the root of the repository to verify that a subtree matches the contents of
|
||||
the commit it claims to have been updated to.
|
||||
|
||||
To use, make sure that you have fetched the upstream repository branch in which the subtree is
|
||||
```
|
||||
Usage: test/lint/git-subtree-check.sh [-r] DIR [COMMIT]
|
||||
test/lint/git-subtree-check.sh -?
|
||||
```
|
||||
|
||||
- `DIR` is the prefix within the repository to check.
|
||||
- `COMMIT` is the commit to check, if it is not provided, HEAD will be used.
|
||||
- `-r` checks that subtree commit is present in repository.
|
||||
|
||||
To do a full check with `-r`, make sure that you have fetched the upstream repository branch in which the subtree is
|
||||
maintained:
|
||||
* for `src/secp256k1`: https://github.com/bitcoin-core/secp256k1.git (branch master)
|
||||
* for `src/leveldb`: https://github.com/bitcoin-core/leveldb.git (branch bitcoin-fork)
|
||||
@@ -29,10 +38,6 @@ To do so, add the upstream repository as remote:
|
||||
git remote add --fetch secp256k1 https://github.com/bitcoin-core/secp256k1.git
|
||||
```
|
||||
|
||||
Usage: `git-subtree-check.sh DIR (COMMIT)`
|
||||
|
||||
`COMMIT` may be omitted, in which case `HEAD` is used.
|
||||
|
||||
lint-all.sh
|
||||
===========
|
||||
Calls other scripts with the `lint-` prefix.
|
||||
|
||||
Reference in New Issue
Block a user