Hooks updated. Added a way to ignore posts to fediverse by creating .git/ignorepost.

This commit is contained in:
Storm Dragon
2024-12-12 21:02:09 -05:00
parent 5ac7a8f5f6
commit 96f819a8f8
2 changed files with 96 additions and 25 deletions

View File

@ -38,16 +38,6 @@ if [ ! -f "$versionFile" ]; then
exit 1
fi
# Check for uncommitted changes (excluding version file)
if [ -n "$(git diff --name-only | grep -v "$versionFile")" ]; then
echo -e "${YELLOW}Warning: You have unstaged changes in other files.${NC}"
read -p "Do you want to continue with the commit? (y/N) " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
exit 1
fi
fi
# Check if the branch name contains "temp" or "temporary"
if [[ "$branchName" =~ temp(orary)? ]]; then
echo -e "${YELLOW}Warning: You appear to be on a temporary branch ($branchName).${NC}"