legit 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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