Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

Commit 6618dd6

Browse files
authored
Recommend using git-clang-format in Contributing Guidelines
1 parent 730bbdf commit 6618dd6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

CONTRIBUTING.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55

66
2. **Code formatting** rules are described by the [Clang-Format Style Options] file [.clang-format].
77
Please use the [clang-format] tool to format your code _changes_ accordingly.
8-
9-
Example:
10-
11-
clang-format -i -lines=146:159 libevm/JitVM.cpp
8+
[git-clang-format] tool is useful to limit reformatting to your changes only:
9+
10+
git clang-format # to reformat the changes in the working directory
11+
git clang-format <commit> # to reformat commits between specified commit and HEAD
1212

1313

1414
[Clang-Format Style Options]: https://clang.llvm.org/docs/ClangFormatStyleOptions.html
1515
[clang-format]: https://clang.llvm.org/docs/ClangFormat.html
1616
[.clang-format]: .clang-format
17+
[git-clang-format]: https://llvm.org/svn/llvm-project/cfe/trunk/tools/clang-format/git-clang-format

0 commit comments

Comments
 (0)