lib/git_wrapper/commands/reset.rb in git_wrapper-1.0.2 vs lib/git_wrapper/commands/reset.rb in git_wrapper-1.0.3
- old
+ new
@@ -1,36 +1,36 @@
-module GitWrapper
- module Commands
- class Reset < Git
-
- def commit(commit)
- @commit = commit
- self
- end
-
- def soft
- @mode = :soft
- self
- end
-
- def hard
- @mode = :hard
- self
- end
-
- def merge
- @mode = :merge
- self
- end
-
- def keep
- @mode = :keep
- self
- end
-
- def command
- "reset #{@mode ? "--#{@mode}" : ''} #{@commit}"
- end
-
- end
- end
+module GitWrapper
+ module Commands
+ class Reset < Git
+
+ def commit(commit)
+ @commit = commit
+ self
+ end
+
+ def soft
+ @mode = :soft
+ self
+ end
+
+ def hard
+ @mode = :hard
+ self
+ end
+
+ def merge
+ @mode = :merge
+ self
+ end
+
+ def keep
+ @mode = :keep
+ self
+ end
+
+ def command
+ "reset #{@mode ? "--#{@mode}" : ''} #{@commit}"
+ end
+
+ end
+ end
end
\ No newline at end of file