lib/rgitflow/tasks/scm/status.rb in rgitflow-0.2.0.pre.alpha.pre.21 vs lib/rgitflow/tasks/scm/status.rb in rgitflow-0.2.0.pre.alpha.pre.22

- old
+ new

@@ -1,10 +1,10 @@ require 'rgitflow/tasks/task' module RGitFlow module Tasks - module SCM + class SCM class Status < RGitFlow::Tasks::Task def initialize(git) super(git, 'status', 'Check the status of the repository', ['rgitflow', 'scm']) end @@ -21,10 +21,10 @@ status 'There are no uncommitted changes in the repository.' end end def dirty? - @git.dirty? + @git.diff.size > 0 end def print_status added = [] modified = [] \ No newline at end of file