Changeset View
Changeset View
Standalone View
Standalone View
contrib/devtools/README.md
Contents | Contents | ||||
======== | ======== | ||||
This directory contains tools for developers working on this repository. | This directory contains tools for developers working on this repository. | ||||
check-doc.py | check-doc.py | ||||
============ | ============ | ||||
Check if all command line args are documented. The return value indicates the | Check if all command line args are documented. The return value indicates the | ||||
number of undocumented args. | number of undocumented args. | ||||
clang-format-diff.py | |||||
=================== | |||||
A script to format unified git diffs according to [.clang-format](../../src/.clang-format). | |||||
For instance, to format the last commit with 0 lines of context, | |||||
the script should be called from the git root folder as follows. | |||||
``` | |||||
git diff -U0 HEAD~1.. | ./contrib/devtools/clang-format-diff.py -p1 -i -v | |||||
``` | |||||
copyright\_header.py | copyright\_header.py | ||||
==================== | ==================== | ||||
Provides utilities for managing copyright headers of `The Bitcoin developers` | Provides utilities for managing copyright headers of `The Bitcoin developers` | ||||
in repository source files. It has three subcommands: | in repository source files. It has three subcommands: | ||||
``` | ``` | ||||
$ ./copyright_header.py report <base_directory> [verbose] | $ ./copyright_header.py report <base_directory> [verbose] | ||||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |