diff --git a/lib/homesick.rb b/lib/homesick.rb index 479c864..ef3ad5e 100644 --- a/lib/homesick.rb +++ b/lib/homesick.rb @@ -124,6 +124,10 @@ class Homesick < Thor home_path = home_dir + file ln_s absolute_path, home_path end + + inside castle_path do + git_add absolute_path + end end desc "list", "List cloned castles" diff --git a/lib/homesick/actions.rb b/lib/homesick/actions.rb index 930c8ab..2a2a451 100644 --- a/lib/homesick/actions.rb +++ b/lib/homesick/actions.rb @@ -67,6 +67,10 @@ class Homesick def git_commit_all(config = {}) say_status 'git commit all', '', :green unless options[:quiet] system "git commit -v -a" unless options[:pretend] + + 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 = {})