File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ But you want to have future changes adhering to some sane style?
11
11
Well, your formatter surely has some Git integration... it doesn't?
12
12
In that case, you are in the right place!
13
13
14
- ` git fmt-diff ` shows how you could reformat just the lines touched in git commits;
15
- similarly to tools like [ git-clang-format] ( https://clang.llvm.org/docs/ClangFormat.html#git-integration ) , but formatter agnostic.
14
+ ` git fmt-diff ` shows how you could reformat just the lines touched in commits
15
+ ( similarly to tools like [ git-clang-format] ( https://clang.llvm.org/docs/ClangFormat.html#git-integration ) , but you can use any formatter)
16
16
17
17
![ screenshot] ( screenshot.png )
18
18
@@ -107,7 +107,7 @@ Your formatter command needs to read from stdio and write to stdout.
107
107
That implies command needing to be filename agnostic!
108
108
109
109
First word in formatter command needs to be an executable (either from `$PATH` or a path to it).
110
- Before running it , script checks whether it's possible with `[ -x "$(command -v EXE)" ] `.
110
+ Before running the command , script checks whether it's possible using `test -x "$(command -v EXE)"`.
111
111
You can use _sh_ expression instead if you start the command with `!`.
112
112
113
113
All paths are in relation to repository root.
You can’t perform that action at this time.
0 commit comments