Skip to content

Instantly share code, notes, and snippets.

@ykyk1218
Created May 30, 2017 07:06
Show Gist options
  • Select an option

  • Save ykyk1218/92a40231f231051a3bba0e270e57307f to your computer and use it in GitHub Desktop.

Select an option

Save ykyk1218/92a40231f231051a3bba0e270e57307f to your computer and use it in GitHub Desktop.
commitした時にbinding.pryがあると怒られるようにする
#!/bin/sh
change_file_list=`git diff --cached --name-status | cut -c3-`;
for FILE in $change_file_list
do
if grep -sq "binding\.pry" $FILE; then
echo "binding.pry、はいってますよ。${FILE}"
exit 1
fi
done
@ykyk1218
Copy link
Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment