As I get closer to being able to release my Multi Target Make system, I’ve been playing with git submodules to avoid having to duplicate identical directories in multiple projects.
Originally the directory layout I had chosen was not particularly friendly for submodules, but a relatively simple tweak to the module level makefile was all it took to fix that.
Now I’ve put together an article on using git submodules to make life a little easier when you have projects that are naturally made up of code from existing modules. All in all, I’m really getting to like git‘s mode of operation – even more than svn that we use at work. Having a full repo on your hard drive means it’s easier to update code when you’re away from a network connection.