legit 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/bin/legit +0 -1
- data/lib/legit/version.rb +1 -1
- data/lib/legit.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
data/bin/legit
CHANGED
data/lib/legit/version.rb
CHANGED
data/lib/legit.rb
CHANGED
@@ -8,7 +8,7 @@ class Legit < Thor
|
|
8
8
|
end
|
9
9
|
|
10
10
|
desc "catch-todos [TODO_FORMAT]", "Abort commit if any todos in TODO_FORMAT found"
|
11
|
-
|
11
|
+
method_option :warn, :type => :boolean, :aliases => "-w", :desc => 'Warn and prompt the user to choose whether to abort the commit'
|
12
12
|
def catch_todos(todo_format = "TODO")
|
13
13
|
system("git diff --staged | grep '^+' | grep #{todo_format}")
|
14
14
|
|
metadata
CHANGED