mirror of
https://github.com/profanity-im/profanity.git
synced 2025-07-26 12:14:28 -04:00
Add highlighting
This commit is contained in:
parent
d1bf922b1a
commit
815a655768
@ -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.
|
So git automatically runs clang-format before doing a commit.
|
||||||
|
|
||||||
You can add the following snippet to `.git/hooks/pre-commit`:
|
You can add the following snippet to `.git/hooks/pre-commit`:
|
||||||
```
|
```shell
|
||||||
for f in $(git diff --cached --name-only)
|
for f in $(git diff --cached --name-only)
|
||||||
do
|
do
|
||||||
clang-format -i $f
|
clang-format -i $f
|
||||||
@ -22,7 +22,7 @@ done
|
|||||||
If you feel embarrassed every time the CI fails you can add the following
|
If you feel embarrassed every time the CI fails you can add the following
|
||||||
snippet to `.git/hooks/pre-push`:
|
snippet to `.git/hooks/pre-push`:
|
||||||
|
|
||||||
```
|
```shell
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
./ci-build.sh
|
./ci-build.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user