muratayusuke
1df44aea40
enable recursive submodule
2013-11-23 19:36:33 +01:00
Jason Buckner
3bc623be7c
perform a git add when doing a homesick track
2013-11-23 19:36:33 +01:00
Jason Buckner
123e6cf82d
splits up castle commit from castle push for more fine-grained control
2013-11-23 19:34:08 +01:00
Jason Buckner
5e9d134021
update documentation for naming consistency
2013-11-23 19:34:08 +01:00
Jason Buckner
f18a4dc16f
add homesick push to readme, a placeholder test, and removed the all option from git push
2013-11-23 19:34:07 +01:00
Jason Buckner
9ac754fd40
start adding git push functionality
2013-11-23 19:34:07 +01:00
Jorge
2667053fde
Making git repos uri non greedy so it works with uris with /
2013-11-23 19:34:07 +01:00
Thilko Richter
54b2b9b339
correct typo
2012-09-06 21:23:45 +02:00
Thilko Richter
fede78c337
cleanup correctly
2012-09-06 21:12:31 +02:00
Thilko Richter
8a41dca46d
destroy action implemented
2012-09-06 07:38:54 +02:00
Jacob Buys
a141f9cbbd
Fix test that fails on 1.9 due to behaviour of String#start_with?
...
On ruby 1.9, the argument of String#start_with? does not automatically
get coerced into a string. In Homesick#clone, we use start_with? with a
Pathname instance, which now always returns false.
2012-05-30 22:53:00 +02:00
Jacob Buys
9ced2921d9
Fix overriding existing symlinks that point to directories.
2011-08-23 22:04:00 +02:00
Jacob Buys
f1a02b8afa
Added support for linking non-dotfiles.
2011-08-21 22:22:23 +02:00
Jacob Buys
4fa7ce416b
Made specs for list pass, refactored track to use given_castle.
2011-08-21 22:04:57 +02:00
Josh Nichols
e19617be2f
Don't try to symlink a castle to itself. Fixes #14
2011-05-30 21:04:41 -04:00
Ilkka Laukkanen
c3999f92b1
Print each castle's name when pulling all castles
2011-04-27 21:51:08 +03:00
Ilkka Laukkanen
c3f6bef152
Don't treat git repos in other repos as castles
...
Further abstracted locating castles into Homesick.all_castles which globs as
before, but after that rejects any paths that lie in other paths. This way
castles that have submodules don't cause extra output in e.g. list.
2011-04-27 21:39:02 +03:00
Ilkka Laukkanen
c870bfe442
Add --all option to pull to update all castles
...
Abstracted the logic for doing some operation for all castles into
Homesick.inside_each_castle() which takes a block argument. Homesick.list() is
also reimplemented to use this new method, because that's where the logic was
stolen from. The actual updating is also moved to the private method
update_castle() to make pull() shorter.
2011-04-27 21:01:29 +03:00
Joshua Nichols
6209080e0c
Remove debug code.
2010-11-13 13:57:55 -06:00
Joshua Nichols
8dbd5a9b21
Spiked homesickrc support. Create a .homesickrc in a castle, and you will be prompted to eval it at clone. Runs in castle directory, and runs in the context of a Homesick instance
2010-10-27 10:09:24 -04:00
Joshua Nichols
f82dc905a2
Tweaks to track. Don't add & commit newly tracked file. Also fix tests to not be spitting out to stdout.
2010-10-27 08:38:30 -04:00
Joshua Nichols
bfbabc05d5
Removing copy-pasta
2010-10-27 08:38:30 -04:00
j.c.sackett
58767454b3
Added track command.
...
* Moves a specified file into the specified castle.
* Symlinks it into its original position.
Signed-off-by: Joshua Nichols <josh@technicalpickles.com >
2010-10-27 08:37:56 -04:00
Joshua Nichols
3f26a74c71
Use || instead of or
2010-09-03 18:49:49 -04:00
Mathieu Sauve-Frankel
1041cb5160
make homesick symlink respect the force option
...
Signed-off-by: Joshua Nichols <josh@technicalpickles.com >
2010-09-03 18:49:25 -04:00
Jacob Atzen
f9c351f941
Handle cloning of uri's based on ssh aliases like host:repos
2010-08-17 10:14:19 +02:00
Jacob Atzen
0440cd672d
Don't try to clone uri's without a corresponding destination
...
The code throws the exception
undefined method `join' for nil:NilClass
if destionation doesn't exist - so it's better to not call git_clone if
destination is not present.
2010-08-17 10:12:59 +02:00
Joshua Nichols
3efee55f03
Fix listing of github-style cloned repos.
2010-05-18 20:42:45 -04:00
Joshua Nichols
f0c67f9653
Merge remote branch 'Sutto/master'
2010-05-18 20:25:53 -04:00
Jorge Dias
94975b49e7
Changed update to pull to match git commands
2010-05-02 19:14:16 +02:00
Jorge Dias
95d22951b3
Implemented update action for castle
2010-04-09 19:02:43 +02:00
Joshua Nichols
c9399064e0
First pass at castle generator task.
2010-04-08 01:05:34 -04:00
Joshua Nichols
a798f3c562
Add a better error message when a repo's home doesn't exist.
2010-04-02 00:53:17 -04:00
Joshua Nichols
c0797dd607
Cloning will now try to init and update git submodules, if they exist.
2010-04-01 21:59:15 -04:00
Joshua Nichols
9a22513ba4
Allow symlinking existing directories into repos, instead of cloning.
2010-04-01 21:19:25 -04:00
Joshua Nichols
5ac2a0739a
Clone github repos into username/repo instead of username_repo, for more consistent use with symlink.
2010-04-01 21:08:36 -04:00
Joshua Nichols
923c634377
Misc cleanup
2010-04-01 21:04:06 -04:00
Joshua Nichols
0579f94430
Moving towards testing list more.
2010-04-01 20:59:24 -04:00
Joshua Nichols
43facf1ec0
Renamed 'link' command to 'symlink'
2010-03-31 23:59:05 -04:00
Joshua Nichols
46b2cbfa3f
Renamed symlink action to ln_s.
2010-03-31 23:57:18 -04:00
Joshua Nichols
cde7989e85
Fix conflict resolution when destination is a plain file (not a symlink).
2010-03-31 23:18:38 -04:00
Joshua Nichols
73d890652e
Fix quiet support
2010-03-19 00:33:59 -04:00
Joshua Nichols
ba84df0137
Cyan list instead of green.
2010-03-19 00:28:08 -04:00
Joshua Nichols
8be582a4cb
Fixed cloning from github.
2010-03-18 23:45:34 -04:00
Joshua Nichols
b80b132a7a
Adding in pretend options.
2010-03-18 23:38:45 -04:00
Joshua Nichols
bf66d91b1f
Shuffled some stuff out of main homesick.rb
2010-03-18 23:30:18 -04:00
Joshua Nichols
ce0d9b9d02
Hai, pretty output.
2010-03-18 23:22:29 -04:00
Jacob Atzen
78e952c2e4
Fixed github name regex so specs run
2010-03-18 23:17:10 -04:00
Jacob Atzen
de0b14bbd6
Don't try to recognize git uri's
...
There's a bunch of different way to specify git uri's. Instead of trying
to recognize uri's let's just accept that the user knows, what he's doing.
2010-03-18 23:17:01 -04:00
Joshua Nichols
8add88a1dc
Make sure castle dir exists before trying to link from it, preventing empty dirs from being created.
2010-03-17 11:38:03 -04:00