Hooks updated. Added a way to ignore posts to fediverse by creating .git/ignorepost.
This commit is contained in:
@ -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}"
|
||||
|
Reference in New Issue
Block a user