zcashd/test/lint
Pieter Wuille eb074fdb24 Improve git-subtree-check.sh
We have several pieces of information about subtrees:
1) What their current directory contents is
2) What their directory contents was at the time of the last subtree merge
3) What the directory contents of the upstream project is in the commit referred to by the subtree merge.

Normally, all 3 should be identical. git-subtree-check.sh so far only compared (1) with (3) however.

Fix this by comparing all three, and give some more useful diff output in the case of mismatch.

The added benefit is that (1) and (2) can be compared without needing to see the upstream repository.
2020-11-09 23:06:21 +00:00
..
README.md test: Move linters to test/lint, add readme 2020-10-27 23:05:02 +00:00
commit-script-check.sh Use HTTPS in script license headers 2020-10-26 18:04:19 +00:00
git-subtree-check.sh Improve git-subtree-check.sh 2020-11-09 23:06:21 +00:00
lint-all.sh Small documentation fixes 2020-11-09 17:15:46 +00:00
lint-include-guards.sh lint: Remove some subtrees from exclusion 2020-11-09 20:06:45 +00:00
lint-includes.sh lint: Remove some subtrees from exclusion 2020-11-09 20:06:45 +00:00
lint-locale-dependence.sh lint: Allow stoi in src/rpc/blockchain.cpp 2020-11-09 20:03:22 +00:00
lint-python-utf8-encoding.sh Follow-up to #13454: Fix broken build by exporting LC_ALL=C 2020-10-28 13:14:39 +00:00
lint-shebang.sh lints: Add a missing copyright header 2020-11-09 17:17:08 +00:00
lint-shell-locale.sh lint: Remove some subtrees from exclusion 2020-11-09 20:06:45 +00:00
lint-shell.sh lint: Remove some subtrees from exclusion 2020-11-09 20:06:45 +00:00
lint-whitespace.sh lint: Remove some subtrees from exclusion 2020-11-09 20:06:45 +00:00

README.md

This folder contains lint scripts.

commit-script-check.sh

Verification of scripted diffs.

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 maintained:

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.