We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 044f359 commit ba47e42Copy full SHA for ba47e42
1 file changed
.github/format.sh
@@ -0,0 +1,9 @@
1
+#!/bin/bash -efux
2
+
3
+PREFIX=$HOME/opt
4
+PATH=$PREFIX/bin:$PATH
5
6
+list=$(git ls-tree --name-only -r HEAD | grep -v ecp_id_.* | grep -v gost_grasshopper_precompiled.c | grep '[.][ch]$')
7
+clang-format -i $list
8
+diffLen=$(git diff | wc -l)
9
+test 0 -eq $diffLen || exit 1
0 commit comments