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?
1111Well, your formatter surely has some Git integration... it doesn't?
1212In that case, you are in the right place!
1313
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)
1616
1717![ screenshot] ( screenshot.png )
1818
@@ -107,7 +107,7 @@ Your formatter command needs to read from stdio and write to stdout.
107107That implies command needing to be filename agnostic!
108108
109109First 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)"`.
111111You can use _sh_ expression instead if you start the command with `!`.
112112
113113All paths are in relation to repository root.
You can’t perform that action at this time.
0 commit comments