2023-01-03 11:25:55 -05:00
|
|
|
#!/bin/sh
|
2021-05-01 13:36:27 -04:00
|
|
|
|
2023-01-03 11:25:55 -05:00
|
|
|
changedFiles="$(git clang-format --extensions cpp,h --style file --staged -q --diffstat -- ':!src/FreeRTOS' ':!src/libs')"
|
|
|
|
git clang-format --extensions cpp,h --style file --staged -q -- ':!src/FreeRTOS' ':!src/libs'
|
2021-05-03 07:12:33 -04:00
|
|
|
|
2023-01-03 11:25:55 -05:00
|
|
|
echo "$changedFiles" | head -n -1 | cut -d ' ' -f 1 | while read -r file; do
|
|
|
|
git add -- "$file"
|
2021-04-18 12:20:16 -04:00
|
|
|
done
|