Files
remote-ui/lint.sh
T
2024-08-29 14:58:33 +02:00

16 lines
217 B
Bash

#!/bin/bash
if (( $# < 1 )); then
>&2 echo "Illegal number of parameters"
exit 1
fi
# save unsaved work
git stash --include-untracked
clang-format -i "$@"
git add -A && git commit -m "Lint"
git stash pop