Files
openairinterface5g/tools/formatting/detect_clang_format_errors.sh
T

6 lines
148 B
Bash
Executable File

#!/bin/bash
set -eo pipefail
BASE_COMMIT=$(git merge-base HEAD origin/develop)
git diff -U0 --no-color $BASE_COMMIT...HEAD | clang-format-diff -p1