Skip to content

Instantly share code, notes, and snippets.

@viktor-evdokimov
Last active April 13, 2018 22:29
Show Gist options
  • Save viktor-evdokimov/cd79290aa66d68a362cd4d36fb206854 to your computer and use it in GitHub Desktop.
Save viktor-evdokimov/cd79290aa66d68a362cd4d36fb206854 to your computer and use it in GitHub Desktop.

Revisions

  1. viktor-evdokimov revised this gist Apr 13, 2018. No changes.
  2. viktor-evdokimov created this gist Apr 13, 2018.
    10 changes: 10 additions & 0 deletions pre-commit.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    #!/bin/sh
    exec 1>&2
    if test $(git diff --cached -S'binding.pry' --name-only |
    LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0
    then
    cat <<\EOF
    Remove biniding.pry
    EOF
    exit 1
    fi