Added three commands: show_path, status, diff

This commit is contained in:
David Simon
2013-06-25 16:11:08 -04:00
parent 4aa76ce444
commit 99760c27af
3 changed files with 54 additions and 0 deletions

View File

@@ -71,6 +71,16 @@ class Homesick
system "git add #{file}" unless options[:pretend]
end
def git_status(config = {})
say_status 'git status', '', :green unless options[:quiet]
system "git status" unless options[:pretend]
end
def git_diff(config = {})
say_status 'git diff', '', :green unless options[:quiet]
system "git diff" unless options[:pretend]
end
def mv(source, destination, config = {})
source = Pathname.new(source)
destination = Pathname.new(destination + source.basename)