aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wennerström <william@wstrm.dev>2020-07-07 10:11:31 +0200
committerWilliam Wennerström <william@wstrm.dev>2020-07-07 10:11:31 +0200
commit815a655768b2e8494c5cc31b5c65d14ad83a8e5f (patch)
treeacc507bbc426d16f66d64d3ebed25468bed5a0b0
parentd1bf922b1ab5608ed425339cfe41039d3ab75dc7 (diff)
downloadprofani-tty-815a655768b2e8494c5cc31b5c65d14ad83a8e5f.tar.gz
Add highlighting
-rw-r--r--CONTRIBUTING.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index f4d83d66..52c65035 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -12,7 +12,7 @@ It might be a good idea to add a git pre-commit hook.
So git automatically runs clang-format before doing a commit.
You can add the following snippet to `.git/hooks/pre-commit`:
-```
+```shell
for f in $(git diff --cached --name-only)
do
clang-format -i $f
@@ -22,7 +22,7 @@ done
If you feel embarrassed every time the CI fails you can add the following
snippet to `.git/hooks/pre-push`:
-```
+```shell
#!/bin/sh
set -e
./ci-build.sh