mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Run checkpatch against origin/master
The develop branch has been deleted. Remove references to it.
This commit is contained in:
@@ -26,9 +26,6 @@ echo "Running checkpatch.pl..."
|
|||||||
fname=$(mktemp)
|
fname=$(mktemp)
|
||||||
rc=0
|
rc=0
|
||||||
|
|
||||||
git remote set-branches --add origin develop
|
|
||||||
git fetch
|
|
||||||
|
|
||||||
make CHECKPATCH=checkpatchdir/checkpatch.pl checkpatch > $fname
|
make CHECKPATCH=checkpatchdir/checkpatch.pl checkpatch > $fname
|
||||||
|
|
||||||
cat $fname
|
cat $fname
|
||||||
|
|||||||
4
Makefile
4
Makefile
@@ -169,11 +169,11 @@ checkcodebase:
|
|||||||
|
|
||||||
# Target used to check the coding style of the patches from the upstream branch
|
# Target used to check the coding style of the patches from the upstream branch
|
||||||
# to the HEAD. Runs checkpatch once for each commit between the current HEAD and
|
# to the HEAD. Runs checkpatch once for each commit between the current HEAD and
|
||||||
# the first common commit between the HEAD and origin/develop. '.y' and '.l'
|
# the first common commit between the HEAD and origin/master. '.y' and '.l'
|
||||||
# files aren't checked, unfortunately...
|
# files aren't checked, unfortunately...
|
||||||
|
|
||||||
checkpatch:
|
checkpatch:
|
||||||
$Qeval COMMON_COMMIT=$$(git merge-base HEAD origin/develop); \
|
$Qeval COMMON_COMMIT=$$(git merge-base HEAD origin/master); \
|
||||||
for commit in `git rev-list $$COMMON_COMMIT..HEAD`; do \
|
for commit in `git rev-list $$COMMON_COMMIT..HEAD`; do \
|
||||||
echo "[*] Analyzing commit '$$commit'"; \
|
echo "[*] Analyzing commit '$$commit'"; \
|
||||||
git format-patch --stdout "$$commit~..$$commit" \
|
git format-patch --stdout "$$commit~..$$commit" \
|
||||||
|
|||||||
Reference in New Issue
Block a user