Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions load_tooltips.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ grep -qxF "data/tooltips.json" .gitignore || echo "data/tooltips.json" >> .gitig
echo "[7] Staging .gitignore only..."
git add .gitignore

if [ -n "$(git diff --cached --name-only -- ':!.gitignore')" ]; then
echo "[8] Found staged files other than .gitignore. Please commit or unstage them first."
exit 1
fi

if git diff --cached --quiet -- .gitignore; then
echo "[8] No changes to commit; skipping git commit/push."
else
Expand Down