https://github.com/git/git
Revision 65e25ae52298e9f1a8c7d94fd0ddffaf30cd944e authored by Junio C Hamano on 04 August 2023, 17:52:31 UTC, committed by Junio C Hamano on 04 August 2023, 17:52:31 UTC
"git branch -f X" to repoint the branch X said that X was "checked
out" in another worktree, even when branch X was not and instead
being bisected or rebased.  The message was reworded to say the
branch was "in use".

* jc/branch-in-use-error-message:
  branch: update the message to refuse touching a branch in-use
2 parent s f4a7c24 + 4970bed
Raw File
Tip revision: 65e25ae52298e9f1a8c7d94fd0ddffaf30cd944e authored by Junio C Hamano on 04 August 2023, 17:52:31 UTC
Merge branch 'jc/branch-in-use-error-message'
Tip revision: 65e25ae
run-static-analysis.sh
#!/bin/sh
#
# Perform various static code analysis checks
#

. ${0%/*}/lib.sh

make coccicheck

set +x

fail=
for cocci_patch in contrib/coccinelle/*.patch
do
	if test -s "$cocci_patch"
	then
		echo "$(tput setaf 1)Coccinelle suggests the following changes in '$cocci_patch':$(tput sgr0)"
		cat "$cocci_patch"
		fail=UnfortunatelyYes
	fi
done

if test -n "$fail"
then
	echo "$(tput setaf 1)error: Coccinelle suggested some changes$(tput sgr0)"
	exit 1
fi

make hdr-check ||
exit 1

make check-pot

save_good_tree
back to top