Skip to content

Instantly share code, notes, and snippets.

View BigNerdCoding's full-sized avatar
🎯
Focusing

Jax Wu BigNerdCoding

🎯
Focusing
View GitHub Profile
#!/bin/bash
STYLE=$(git config --get hooks.clangformat.style)
if [ -n "${STYLE}" ] ; then
STYLEARG="-style=${STYLE}"
else
STYLEARG="-style=file"
fi
format_file() {