Files
2023-Webservices_And_Applic…/lint.sh
2024-08-29 14:35: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