Is it possible to only checkout a single branch as a submodule WITHOUT the overhead of the whole repository in my main repositories working directory? (And really only download the files of that branch)
I think of having a submodule for a javascript library with a branch called "dist" containing only the minified compiled ready-to-use js file. The "master" would instead contain the source files and a bunch of other stuff only needed for development of the lib.