Debian Codegraph @

texk/xdvipsk/thirdparty/libtiff/CONTRIBUTING.md

raw symbols SCIP
1 Contributing
2 ------------
3
4 libtiff uses a ``.clang-format`` file to enforce code formatting rules.
5
6 Automatic code reformatting can be done with pre-commit.
7
8 Install (once) pre-commit with ``python -m pip install pre-commit``.
9
10 Install it (once) in the libtiff git repository with ``pre-commit install``.
11
12 Then the rules defined in the ``.pre-commit-config.yaml`` file will be
13 enforced at ``git commit`` time, with automatic reformatting.
14
15 Due to whole-tree code reformatting done during libtiff 4.5 development,
16 ``git blame`` information might be misleading. To avoid that, you need
17 to modify your git configuration as following to ignore the revision of
18 the whole-tree reformatting:
19 ``git config blame.ignoreRevsFile .git-blame-ignore-revs``.