It's at least a start.
Nicholas
Sent from my iPhone
> --
> You received this message because you are subscribed to the Google Groups "sinatrarb" group.
> To post to this group, send email to sina...@googlegroups.com.
> To unsubscribe from this group, send email to sinatrarb+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/sinatrarb?hl=en.
>
To unsubscribe from this group, send email to sinatrarb+...@googlegroups.com.
You can, since they're normal git repos. It's just a bit cumbersome, since you'll usually want your submodule checked out at a specific version, while maybe working on multiple branches in the repository. I always have a separate clone for doing actual development work on repos that are submodules.
That said, symlinking is probably the easiest solution for what the OP wants in his case.
I'm going to be the smellfungus here: in my experience, Git submodules
are more trouble than they're worth. Adding one's easy enough; but
then everyone working in your project has to remember to initialize it
('git submodule init') as a separate step, and also know when to
update it ('git submodule update'). Beyond that, they just seem
annoyingly fragile. It's very easy to push a parent update but forget
to push submodule changes, or lose track of what branch you're in (or
even *if* you're in a branch), or get things out of sync in many other
hard-to-debug ways.
And then if you change your mind and want to *remove* the submodule?
Ha. There's no command for that. You can Google for the right
incantations and hidden text files to hack, but I personally don't
like the feeling that I'm performing brain surgery on my repository
for simple dependency maintenance.
There are a couple of other strategies that people have promoted. One
is a much simpler "fake submodules" approach, where you simply copy a
repository in and _don't_ declare a submodule for it:
http://debuggable.com/posts/git-fake-submodules:4b563ee4-f3cc-4061-967e-0e48cbdd56cb
Another is to use subtree merging instead of submodules. Scott Chacon
describes the approach here:
http://progit.org/book/ch6-7.html
...and some noble human has crystallized it into a very clean and
simple Git command:
http://github.com/apenwarr/git-subtree/blob/master/git-subtree.txt
Good luck.
--
Have Fun,
Steve Eley (sfe...@gmail.com)
ESCAPE POD - The Science Fiction Podcast Magazine
http://www.escapepod.org