Hi Ken

Git will not add directories - but you can add a file in those  
directories for them to be created. If you want to ensure those  
directories exist, just add an empty .gitignore file within the dir.

As for ignoring plugins - if you've installed Thinking Sphinx using  
git itself (instead of script/plugin install), it keeps it as a  
separate git repository, and so there is a .git directory in vendor/ 
plugins/thinking_sphinx/.git. If you want to ignore the git history of  
the plugin, and just keep all the files in your own repo (which is  
what script/plugin install does), just remove that .git folder (in  
vendor/plugins/thinking_sphinx - not your own .git folder in  
RAILS_ROOT), and you should be able to add those files.

If you'd rather Thinking Sphinx as a separate git repository, then  
'git submodule' is what you should read up on. Personally, I'd  
recommend installing Thinking Sphinx as a gem instead, and add the  
relevant lines to your environment.rb file -- see the last section on  
this page:
http://freelancing-god.github.com/ts/en/installing_thinking_sphinx.html

Keep in mind the latest version of TS is 1.1.20 though.

Hope this is at least somewhat understandable, given it's a Friday  
evening.

Cheers

-- 
Pat

On 05/06/2009, at 6:18 PM, Ken Hudson wrote:

>
> Good Friday Afternoon,
>
> I'm using git for the first time on my new project and I just
> installed Thinking Sphinx.  How do I best handle getting the Vendor
> directory into my local git repository?  I've read that git doesn't
> track directories and there's an issue with empty directories but it
> doesn't look like there are any empty directories in Vendor.  So...
> can I just enter "git add Vendor"?  What if there were empty
> directories in Vendor?
>
> Thanks, Ken
>
> >


--~--~---------~--~----~------------~-------~--~----~
SD Ruby mailing list
sdruby@googlegroups.com
http://groups.google.com/group/sdruby
-~----------~----~----~----~------~----~------~--~---

Reply via email to