Skip to content

Instantly share code, notes, and snippets.

@lucascaton
Forked from jonasschmidt/pre-commit
Created December 9, 2015 00:04
Show Gist options
  • Save lucascaton/2f4555747c29d8766e73 to your computer and use it in GitHub Desktop.
Save lucascaton/2f4555747c29d8766e73 to your computer and use it in GitHub Desktop.

Revisions

  1. Jonas Schmidt revised this gist Jul 7, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pre-commit
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/usr/bin/env ruby

    if `git diff --cached spec` =~ /,\s?(:focus|focus:\s?true|:focus\s?=>\s?true)/
    puts "\e[31mplease focus and remove your :focus tags before committing :)"
    puts "\e[31mPlease focus and remove your :focus tags before committing :)"
    exit 1
    end
  2. Jonas Schmidt created this gist Jul 7, 2013.
    6 changes: 6 additions & 0 deletions pre-commit
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #!/usr/bin/env ruby

    if `git diff --cached spec` =~ /,\s?(:focus|focus:\s?true|:focus\s?=>\s?true)/
    puts "\e[31mplease focus and remove your :focus tags before committing :)"
    exit 1
    end