perform a git add when doing a homesick track
This commit is contained in:
@@ -125,6 +125,10 @@ class Homesick < Thor
|
|||||||
home_path = home_dir + file
|
home_path = home_dir + file
|
||||||
ln_s absolute_path, home_path
|
ln_s absolute_path, home_path
|
||||||
end
|
end
|
||||||
|
|
||||||
|
inside castle_path do
|
||||||
|
git_add absolute_path
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "list", "List cloned castles"
|
desc "list", "List cloned castles"
|
||||||
|
|||||||
@@ -70,6 +70,11 @@ class Homesick
|
|||||||
system "git commit -v -a" unless options[:pretend]
|
system "git commit -v -a" unless options[:pretend]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def git_add(file, config = {})
|
||||||
|
say_status 'git add file', '', :green unless options[:quiet]
|
||||||
|
system "git add #{file}" unless options[:pretend]
|
||||||
|
end
|
||||||
|
|
||||||
def mv(source, destination, config = {})
|
def mv(source, destination, config = {})
|
||||||
source = Pathname.new(source)
|
source = Pathname.new(source)
|
||||||
destination = Pathname.new(destination + source.basename)
|
destination = Pathname.new(destination + source.basename)
|
||||||
|
|||||||
Reference in New Issue
Block a user